public class Team extends AbstractTeam
AbstractTeam.CollisionRule, AbstractTeam.VisibilityRule
Modifier and Type | Field and Description |
---|---|
private AbstractTeam.CollisionRule |
collisionRule |
private Formatting |
color |
private AbstractTeam.VisibilityRule |
deathMessageVisibilityRule |
private Text |
displayName |
private Style |
field_24195 |
private boolean |
friendlyFire |
private String |
name |
private AbstractTeam.VisibilityRule |
nameTagVisibilityRule |
private Set<String> |
playerList |
private Text |
prefix |
private Scoreboard |
scoreboard |
private boolean |
showFriendlyInvisibles |
private Text |
suffix |
Constructor and Description |
---|
Team(Scoreboard scoreboard,
String name) |
isEqual
private final Scoreboard scoreboard
private final String name
private Text displayName
private Text prefix
private Text suffix
private boolean friendlyFire
private boolean showFriendlyInvisibles
private AbstractTeam.VisibilityRule nameTagVisibilityRule
private AbstractTeam.VisibilityRule deathMessageVisibilityRule
private Formatting color
private AbstractTeam.CollisionRule collisionRule
private final Style field_24195
public Team(Scoreboard scoreboard, String name)
public String getName()
getName
in class AbstractTeam
public Text getDisplayName()
public MutableText getFormattedName()
public void setDisplayName(Text text)
public Text getPrefix()
public Text getSuffix()
public Collection<String> getPlayerList()
getPlayerList
in class AbstractTeam
public MutableText modifyText(Text text)
modifyText
in class AbstractTeam
public static MutableText modifyText(@Nullable AbstractTeam abstractTeam, Text text)
public boolean isFriendlyFireAllowed()
isFriendlyFireAllowed
in class AbstractTeam
public void setFriendlyFireAllowed(boolean friendlyFire)
public boolean shouldShowFriendlyInvisibles()
shouldShowFriendlyInvisibles
in class AbstractTeam
public void setShowFriendlyInvisibles(boolean showFriendlyInvisible)
public AbstractTeam.VisibilityRule getNameTagVisibilityRule()
getNameTagVisibilityRule
in class AbstractTeam
public AbstractTeam.VisibilityRule getDeathMessageVisibilityRule()
getDeathMessageVisibilityRule
in class AbstractTeam
public void setNameTagVisibilityRule(AbstractTeam.VisibilityRule visibilityRule)
public void setDeathMessageVisibilityRule(AbstractTeam.VisibilityRule visibilityRule)
public AbstractTeam.CollisionRule getCollisionRule()
getCollisionRule
in class AbstractTeam
public void setCollisionRule(AbstractTeam.CollisionRule collisionRule)
public int getFriendlyFlagsBitwise()
@Environment(value=CLIENT) public void setFriendlyFlagsBitwise(int int2)
public void setColor(Formatting color)
public Formatting getColor()
getColor
in class AbstractTeam