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 final int
private static final int
private Team.CollisionRule
private ChatFormatting
private Team.Visibility
private Component
private final Style
private final String
private Team.Visibility
private Component
private Component
private final 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
-
BIT_FRIENDLY_FIRE
private static final int BIT_FRIENDLY_FIRE- See Also:
-
BIT_SEE_INVISIBLES
private static final int BIT_SEE_INVISIBLES- See Also:
-
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
-