Package net.minecraft.scoreboard
Class AbstractTeam
java.lang.Object
net.minecraft.scoreboard.AbstractTeam
- Direct Known Subclasses:
Team
public abstract class AbstractTeam extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractTeam.CollisionRule
static class
AbstractTeam.VisibilityRule
-
Constructor Summary
Constructors Constructor Description AbstractTeam()
-
Method Summary
Modifier and Type Method Description abstract MutableText
decorateName(Text name)
Decorates the name of an entity with the prefix, suffix and color of this team.abstract AbstractTeam.CollisionRule
getCollisionRule()
abstract Formatting
getColor()
abstract AbstractTeam.VisibilityRule
getDeathMessageVisibilityRule()
abstract String
getName()
abstract AbstractTeam.VisibilityRule
getNameTagVisibilityRule()
abstract Collection<String>
getPlayerList()
boolean
isEqual(AbstractTeam abstractTeam)
abstract boolean
isFriendlyFireAllowed()
abstract boolean
shouldShowFriendlyInvisibles()
-
Constructor Details
-
AbstractTeam
public AbstractTeam()
-
-
Method Details
-
isEqual
-
getName
-
decorateName
Decorates the name of an entity with the prefix, suffix and color of this team.- Parameters:
name
- the name to be decorated
-
shouldShowFriendlyInvisibles
@Environment(CLIENT) public abstract boolean shouldShowFriendlyInvisibles() -
isFriendlyFireAllowed
public abstract boolean isFriendlyFireAllowed() -
getNameTagVisibilityRule
-
getColor
-
getPlayerList
-
getDeathMessageVisibilityRule
-
getCollisionRule
-