Package net.minecraft.world.scores
Class PlayerTeam
java.lang.Object
net.minecraft.world.scores.Team
net.minecraft.world.scores.PlayerTeam
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.scores.Team
Team.CollisionRule, Team.Visibility -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static final intprivate static final intprivate Team.CollisionRuleprivate ChatFormattingprivate Team.Visibilityprivate Componentprivate final Styleprivate final Stringprivate Team.Visibilityprivate Componentprivate Componentprivate final Scoreboardprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic MutableComponentformatNameForTeam(Team pPlayerTeam, Component pPlayerName) getColor()getFormattedName(Component pFormattedName) getName()booleanpack()intvoidsetAllowFriendlyFire(boolean pFriendlyFire) Sets whether friendly fire (PVP between members of the team) is allowed.voidSets the rule to be used for handling collisions with members of this team.voidsetColor(ChatFormatting pColor) Sets the color for this team.voidsetDeathMessageVisibility(Team.Visibility pVisibility) Sets the visibility flags for player death messages.voidsetDisplayName(Component pName) Sets the display name for this team.voidsetNameTagVisibility(Team.Visibility pVisibility) Sets the visibility flags for player name tags.voidsetPlayerPrefix(Component pPlayerPrefix) voidsetPlayerSuffix(Component pPlayerSuffix) voidsetSeeFriendlyInvisibles(boolean pFriendlyInvisibles) Sets whether members of this team can see other members that are invisible.voidunpackOptions(int pFlags) Sets friendly fire and invisibles flags based off of the given bitmask.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
-
pack
-
getScoreboard
-
getName
-
getDisplayName
-
getFormattedDisplayName
-
setDisplayName
Sets the display name for this team. -
setPlayerPrefix
-
getPlayerPrefix
-
setPlayerSuffix
-
getPlayerSuffix
-
getPlayers
- Specified by:
getPlayersin classTeam
-
getFormattedName
- Specified by:
getFormattedNamein classTeam
-
formatNameForTeam
-
isAllowFriendlyFire
public boolean isAllowFriendlyFire()- Specified by:
isAllowFriendlyFirein classTeam
-
setAllowFriendlyFire
public void setAllowFriendlyFire(boolean pFriendlyFire) Sets whether friendly fire (PVP between members of the team) is allowed. -
canSeeFriendlyInvisibles
public boolean canSeeFriendlyInvisibles()- Specified by:
canSeeFriendlyInvisiblesin classTeam
-
setSeeFriendlyInvisibles
public void setSeeFriendlyInvisibles(boolean pFriendlyInvisibles) Sets whether members of this team can see other members that are invisible. -
getNameTagVisibility
- Specified by:
getNameTagVisibilityin classTeam
-
getDeathMessageVisibility
- Specified by:
getDeathMessageVisibilityin classTeam
-
setNameTagVisibility
Sets the visibility flags for player name tags. -
setDeathMessageVisibility
Sets the visibility flags for player death messages. -
getCollisionRule
- Specified by:
getCollisionRulein classTeam
-
setCollisionRule
Sets the rule to be used for handling collisions with members of this team. -
packOptions
public int packOptions() -
unpackOptions
public void unpackOptions(int pFlags) Sets friendly fire and invisibles flags based off of the given bitmask. -
setColor
Sets the color for this team. The team color is used mainly for team kill objectives and team-specific setDisplay usage. It does _not_ affect all situations (for instance, the prefix is used for the glowing effect). -
getColor
-