public class ScorePlayerTeam extends Team
Team.CollisionRule, Team.EnumVisible
Constructor and Description |
---|
ScorePlayerTeam(Scoreboard scoreboardIn,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatPlayerName(Team teamIn,
java.lang.String string)
Formats the given text as a member of the given team, using the team's prefix and suffix.
|
java.lang.String |
formatString(java.lang.String input)
Formats the given text as a member of this team, using the prefix and suffix.
|
boolean |
getAllowFriendlyFire()
Checks whether friendly fire (PVP between members of the team) is allowed.
|
Team.CollisionRule |
getCollisionRule()
Gets the rule to be used for handling collisions with members of this team.
|
TextFormatting |
getColor()
Gets the color for this team.
|
Team.EnumVisible |
getDeathMessageVisibility()
Gets the visibility flags for player death messages.
|
java.lang.String |
getDisplayName()
Gets the display name for this team.
|
int |
getFriendlyFlags()
Gets a bitmask containing the friendly fire and invisibles flags.
|
java.util.Collection<java.lang.String> |
getMembershipCollection()
Gets a collection of all members of this team.
|
java.lang.String |
getName()
Retrieve the name by which this team is registered in the scoreboard
|
Team.EnumVisible |
getNameTagVisibility()
Gets the visibility flags for player name tags.
|
java.lang.String |
getPrefix()
Gets the prefix applied before the names of members of this team.
|
boolean |
getSeeFriendlyInvisiblesEnabled()
Checks whether members of this team can see other members that are invisible.
|
java.lang.String |
getSuffix()
Gets the suffix applied after the names of members of this team.
|
void |
setAllowFriendlyFire(boolean friendlyFire)
Sets whether friendly fire (PVP between members of the team) is allowed.
|
void |
setCollisionRule(Team.CollisionRule rule)
Sets the rule to be used for handling collisions with members of this team.
|
void |
setColor(TextFormatting color)
Sets the color for this team.
|
void |
setDeathMessageVisibility(Team.EnumVisible visibility)
Sets the visibility flags for player death messages.
|
void |
setDisplayName(java.lang.String name)
Sets the display name for this team.
|
void |
setFriendlyFlags(int flags)
Sets friendly fire and invisibles flags based off of the given bitmask.
|
void |
setNameTagVisibility(Team.EnumVisible visibility)
Sets the visibility flags for player name tags.
|
void |
setPrefix(java.lang.String prefix)
Sets the prefix applied before the names of members of this team.
|
void |
setSeeFriendlyInvisiblesEnabled(boolean friendlyInvisibles)
Sets whether members of this team can see other members that are invisible.
|
void |
setSuffix(java.lang.String suffix)
Sets the suffix applied after the names of members of this team.
|
isSameTeam
public ScorePlayerTeam(Scoreboard scoreboardIn, java.lang.String name)
public java.lang.String getName()
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String name)
public java.util.Collection<java.lang.String> getMembershipCollection()
getMembershipCollection
in class Team
public java.lang.String getPrefix()
Renderer.getTeamColor
.public void setPrefix(java.lang.String prefix)
public java.lang.String getSuffix()
public void setSuffix(java.lang.String suffix)
public java.lang.String formatString(java.lang.String input)
formatString
in class Team
public static java.lang.String formatPlayerName(Team teamIn, java.lang.String string)
public boolean getAllowFriendlyFire()
getAllowFriendlyFire
in class Team
public void setAllowFriendlyFire(boolean friendlyFire)
public boolean getSeeFriendlyInvisiblesEnabled()
getSeeFriendlyInvisiblesEnabled
in class Team
public void setSeeFriendlyInvisiblesEnabled(boolean friendlyInvisibles)
public Team.EnumVisible getNameTagVisibility()
getNameTagVisibility
in class Team
public Team.EnumVisible getDeathMessageVisibility()
getDeathMessageVisibility
in class Team
public void setNameTagVisibility(Team.EnumVisible visibility)
public void setDeathMessageVisibility(Team.EnumVisible visibility)
public Team.CollisionRule getCollisionRule()
getCollisionRule
in class Team
public void setCollisionRule(Team.CollisionRule rule)
public int getFriendlyFlags()
public void setFriendlyFlags(int flags)
public void setColor(TextFormatting color)
public TextFormatting getColor()