public class ScorePlayerTeam extends Team
Team.CollisionRule, Team.Visible
コンストラクタと説明 |
---|
ScorePlayerTeam(Scoreboard scoreboardIn,
java.lang.String name) |
修飾子とタイプ | メソッドと説明 |
---|---|
ITextComponent |
format(ITextComponent p_200540_1_) |
static ITextComponent |
formatMemberName(Team p_200541_0_,
ITextComponent p_200541_1_) |
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.
|
ITextComponent |
getCommandName()
Get name to display in command feedback
|
Team.Visible |
getDeathMessageVisibility()
Gets the visibility flags for player death messages.
|
ITextComponent |
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.Visible |
getNameTagVisibility()
Gets the visibility flags for player name tags.
|
ITextComponent |
getPrefix() |
boolean |
getSeeFriendlyInvisiblesEnabled()
Checks whether members of this team can see other members that are invisible.
|
ITextComponent |
getSuffix() |
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.Visible visibility)
Sets the visibility flags for player death messages.
|
void |
setDisplayName(ITextComponent 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.Visible visibility)
Sets the visibility flags for player name tags.
|
void |
setPrefix(ITextComponent p_207408_1_) |
void |
setSeeFriendlyInvisiblesEnabled(boolean friendlyInvisibles)
Sets whether members of this team can see other members that are invisible.
|
void |
setSuffix(ITextComponent p_207409_1_) |
isSameTeam
public ScorePlayerTeam(Scoreboard scoreboardIn, java.lang.String name)
public java.lang.String getName()
public ITextComponent getDisplayName()
public ITextComponent getCommandName()
public void setDisplayName(ITextComponent name)
public void setPrefix(@Nullable ITextComponent p_207408_1_)
public ITextComponent getPrefix()
public void setSuffix(@Nullable ITextComponent p_207409_1_)
public ITextComponent getSuffix()
public java.util.Collection<java.lang.String> getMembershipCollection()
getMembershipCollection
クラス内 Team
public ITextComponent format(ITextComponent p_200540_1_)
public static ITextComponent formatMemberName(@Nullable Team p_200541_0_, ITextComponent p_200541_1_)
public boolean getAllowFriendlyFire()
getAllowFriendlyFire
クラス内 Team
public void setAllowFriendlyFire(boolean friendlyFire)
public boolean getSeeFriendlyInvisiblesEnabled()
getSeeFriendlyInvisiblesEnabled
クラス内 Team
public void setSeeFriendlyInvisiblesEnabled(boolean friendlyInvisibles)
public Team.Visible getNameTagVisibility()
getNameTagVisibility
クラス内 Team
public Team.Visible getDeathMessageVisibility()
getDeathMessageVisibility
クラス内 Team
public void setNameTagVisibility(Team.Visible visibility)
public void setDeathMessageVisibility(Team.Visible visibility)
public Team.CollisionRule getCollisionRule()
getCollisionRule
クラス内 Team
public void setCollisionRule(Team.CollisionRule rule)
public int getFriendlyFlags()
public void setFriendlyFlags(int flags)
public void setColor(TextFormatting color)
public TextFormatting getColor()