Package net.minecraft.world.scores
Class PlayerTeam
java.lang.Object
net.minecraft.world.scores.Team
net.minecraft.world.scores.PlayerTeam
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.scores.Team
Team.CollisionRule, Team.Visibility
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static int
private static int
private Team.CollisionRule
private ChatFormatting
private Team.Visibility
private Component
private Style
static int
private String
private Team.Visibility
private Component
private Component
private Scoreboard
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static MutableComponent
formatNameForTeam(Team p_83349_, Component p_83350_)
getColor()
getFormattedName(Component p_83369_)
getName()
boolean
int
void
setAllowFriendlyFire(boolean p_83356_)
void
setCollisionRule(Team.CollisionRule p_83345_)
void
setColor(ChatFormatting p_83352_)
void
setDeathMessageVisibility(Team.Visibility p_83359_)
void
setDisplayName(Component p_83354_)
void
setNameTagVisibility(Team.Visibility p_83347_)
void
setPlayerPrefix(Component p_83361_)
void
setPlayerSuffix(Component p_83366_)
void
setSeeFriendlyInvisibles(boolean p_83363_)
void
unpackOptions(int p_83343_)
Methods inherited from class net.minecraft.world.scores.Team
isAlliedTo
-
Field Details
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTH- See Also:
- Constant Field Values
-
BIT_FRIENDLY_FIRE
private static final int BIT_FRIENDLY_FIRE- See Also:
- Constant Field Values
-
BIT_SEE_INVISIBLES
private static final int BIT_SEE_INVISIBLES- See Also:
- Constant Field Values
-
scoreboard
-
name
-
players
-
displayName
-
playerPrefix
-
playerSuffix
-
allowFriendlyFire
private boolean allowFriendlyFire -
seeFriendlyInvisibles
private boolean seeFriendlyInvisibles -
nameTagVisibility
-
deathMessageVisibility
-
color
-
collisionRule
-
displayNameStyle
-
-
Constructor Details
-
PlayerTeam
-
-
Method Details
-
getScoreboard
-
getName
-
getDisplayName
-
getFormattedDisplayName
-
setDisplayName
-
setPlayerPrefix
-
getPlayerPrefix
-
setPlayerSuffix
-
getPlayerSuffix
-
getPlayers
- Specified by:
getPlayers
in classTeam
-
getFormattedName
- Specified by:
getFormattedName
in classTeam
-
formatNameForTeam
-
isAllowFriendlyFire
public boolean isAllowFriendlyFire()- Specified by:
isAllowFriendlyFire
in classTeam
-
setAllowFriendlyFire
public void setAllowFriendlyFire(boolean p_83356_) -
canSeeFriendlyInvisibles
public boolean canSeeFriendlyInvisibles()- Specified by:
canSeeFriendlyInvisibles
in classTeam
-
setSeeFriendlyInvisibles
public void setSeeFriendlyInvisibles(boolean p_83363_) -
getNameTagVisibility
- Specified by:
getNameTagVisibility
in classTeam
-
getDeathMessageVisibility
- Specified by:
getDeathMessageVisibility
in classTeam
-
setNameTagVisibility
-
setDeathMessageVisibility
-
getCollisionRule
- Specified by:
getCollisionRule
in classTeam
-
setCollisionRule
-
packOptions
public int packOptions() -
unpackOptions
public void unpackOptions(int p_83343_) -
setColor
-
getColor
-