Package net.minecraft.server.commands
Class TeamCommand
java.lang.Object
net.minecraft.server.commands.TeamCommand
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static intcreateTeam(CommandSourceStack p_138911_, String p_138912_) private static intcreateTeam(CommandSourceStack p_138914_, String p_138915_, Component p_138916_) private static intdeleteTeam(CommandSourceStack p_138927_, PlayerTeam p_138928_) private static intemptyTeam(CommandSourceStack p_138884_, PlayerTeam p_138885_) private static ComponentgetFirstMemberName(Collection<ScoreHolder> p_313883_) private static intjoinTeam(CommandSourceStack p_138895_, PlayerTeam p_138896_, Collection<ScoreHolder> p_138897_) private static intleaveTeam(CommandSourceStack p_138918_, Collection<ScoreHolder> p_138919_) private static intlistMembers(CommandSourceStack p_138944_, PlayerTeam p_138945_) private static intlistTeams(CommandSourceStack p_138882_) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138878_) private static intsetCollision(CommandSourceStack p_138887_, PlayerTeam p_138888_, Team.CollisionRule p_138889_) private static intsetColor(CommandSourceStack p_138899_, PlayerTeam p_138900_, ChatFormatting p_138901_) private static intsetDeathMessageVisibility(CommandSourceStack p_138930_, PlayerTeam p_138931_, Team.Visibility p_138932_) private static intsetDisplayName(CommandSourceStack p_138903_, PlayerTeam p_138904_, Component p_138905_) private static intsetFriendlyFire(CommandSourceStack p_138938_, PlayerTeam p_138939_, boolean p_138940_) private static intsetFriendlySight(CommandSourceStack p_138907_, PlayerTeam p_138908_, boolean p_138909_) private static intsetNametagVisibility(CommandSourceStack p_138891_, PlayerTeam p_138892_, Team.Visibility p_138893_) private static intsetPrefix(CommandSourceStack p_138934_, PlayerTeam p_138935_, Component p_138936_) private static intsetSuffix(CommandSourceStack p_138947_, PlayerTeam p_138948_, Component p_138949_) 
- 
Field Details- 
ERROR_TEAM_ALREADY_EXISTSprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_EXISTS
- 
ERROR_TEAM_ALREADY_EMPTYprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_EMPTY
- 
ERROR_TEAM_ALREADY_NAMEprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_NAME
- 
ERROR_TEAM_ALREADY_COLORprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_COLOR
- 
ERROR_TEAM_ALREADY_FRIENDLYFIRE_ENABLEDprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYFIRE_ENABLED
- 
ERROR_TEAM_ALREADY_FRIENDLYFIRE_DISABLEDprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYFIRE_DISABLED
- 
ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_ENABLEDprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_ENABLED
- 
ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_DISABLEDprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_DISABLED
- 
ERROR_TEAM_NAMETAG_VISIBLITY_UNCHANGEDprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_NAMETAG_VISIBLITY_UNCHANGED
- 
ERROR_TEAM_DEATH_MESSAGE_VISIBLITY_UNCHANGEDprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_DEATH_MESSAGE_VISIBLITY_UNCHANGED
- 
ERROR_TEAM_COLLISION_UNCHANGEDprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_COLLISION_UNCHANGED
 
- 
- 
Constructor Details- 
TeamCommandpublic TeamCommand()
 
- 
- 
Method Details- 
register
- 
getFirstMemberName
- 
leaveTeam
- 
joinTeamprivate static int joinTeam(CommandSourceStack p_138895_, PlayerTeam p_138896_, Collection<ScoreHolder> p_138897_) 
- 
setNametagVisibilityprivate static int setNametagVisibility(CommandSourceStack p_138891_, PlayerTeam p_138892_, Team.Visibility p_138893_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
setDeathMessageVisibilityprivate static int setDeathMessageVisibility(CommandSourceStack p_138930_, PlayerTeam p_138931_, Team.Visibility p_138932_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
setCollisionprivate static int setCollision(CommandSourceStack p_138887_, PlayerTeam p_138888_, Team.CollisionRule p_138889_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
setFriendlySightprivate static int setFriendlySight(CommandSourceStack p_138907_, PlayerTeam p_138908_, boolean p_138909_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
setFriendlyFireprivate static int setFriendlyFire(CommandSourceStack p_138938_, PlayerTeam p_138939_, boolean p_138940_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
setDisplayNameprivate static int setDisplayName(CommandSourceStack p_138903_, PlayerTeam p_138904_, Component p_138905_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
setColorprivate static int setColor(CommandSourceStack p_138899_, PlayerTeam p_138900_, ChatFormatting p_138901_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
emptyTeamprivate static int emptyTeam(CommandSourceStack p_138884_, PlayerTeam p_138885_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
deleteTeam
- 
createTeamprivate static int createTeam(CommandSourceStack p_138911_, String p_138912_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
createTeamprivate static int createTeam(CommandSourceStack p_138914_, String p_138915_, Component p_138916_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
listMembers
- 
listTeams
- 
setPrefixprivate static int setPrefix(CommandSourceStack p_138934_, PlayerTeam p_138935_, Component p_138936_) 
- 
setSuffixprivate static int setSuffix(CommandSourceStack p_138947_, PlayerTeam p_138948_, Component p_138949_) 
 
-