Package net.minecraft.server.commands
Class TeamCommand
java.lang.Object
net.minecraft.server.commands.TeamCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
createTeam
(CommandSourceStack pSource, String pName) private static int
createTeam
(CommandSourceStack pSource, String pName, Component pDisplayName) private static int
deleteTeam
(CommandSourceStack pSource, PlayerTeam pTeam) private static int
emptyTeam
(CommandSourceStack pSource, PlayerTeam pTeam) private static Component
getFirstMemberName
(Collection<ScoreHolder> pScores) private static int
joinTeam
(CommandSourceStack pSource, PlayerTeam pTeam, Collection<ScoreHolder> pPlayers) private static int
leaveTeam
(CommandSourceStack pSource, Collection<ScoreHolder> pPlayers) Removes the listed players from their teams.private static int
listMembers
(CommandSourceStack pSource, PlayerTeam pTeam) private static int
listTeams
(CommandSourceStack pSource) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138878_, CommandBuildContext p_323744_) private static int
setCollision
(CommandSourceStack pSource, PlayerTeam pTeam, Team.CollisionRule pRule) private static int
setColor
(CommandSourceStack pSource, PlayerTeam pTeam, ChatFormatting pValue) private static int
setDeathMessageVisibility
(CommandSourceStack pSource, PlayerTeam pTeam, Team.Visibility pVisibility) private static int
setDisplayName
(CommandSourceStack pSource, PlayerTeam pTeam, Component pValue) private static int
setFriendlyFire
(CommandSourceStack pSource, PlayerTeam pTeam, boolean pValue) private static int
setFriendlySight
(CommandSourceStack pSource, PlayerTeam pTeam, boolean pValue) private static int
setNametagVisibility
(CommandSourceStack pSource, PlayerTeam pTeam, Team.Visibility pVisibility) private static int
setPrefix
(CommandSourceStack pSource, PlayerTeam pTeam, Component pPrefix) private static int
setSuffix
(CommandSourceStack pSource, PlayerTeam pTeam, Component pSuffix)
-
Field Details
-
ERROR_TEAM_ALREADY_EXISTS
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_EXISTS -
ERROR_TEAM_ALREADY_EMPTY
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_EMPTY -
ERROR_TEAM_ALREADY_NAME
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_NAME -
ERROR_TEAM_ALREADY_COLOR
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_COLOR -
ERROR_TEAM_ALREADY_FRIENDLYFIRE_ENABLED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYFIRE_ENABLED -
ERROR_TEAM_ALREADY_FRIENDLYFIRE_DISABLED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYFIRE_DISABLED -
ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_ENABLED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_ENABLED -
ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_DISABLED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_DISABLED -
ERROR_TEAM_NAMETAG_VISIBLITY_UNCHANGED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_NAMETAG_VISIBLITY_UNCHANGED -
ERROR_TEAM_DEATH_MESSAGE_VISIBLITY_UNCHANGED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_DEATH_MESSAGE_VISIBLITY_UNCHANGED -
ERROR_TEAM_COLLISION_UNCHANGED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_COLLISION_UNCHANGED
-
-
Constructor Details
-
TeamCommand
public TeamCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138878_, CommandBuildContext p_323744_) -
getFirstMemberName
-
leaveTeam
Removes the listed players from their teams. -
joinTeam
private static int joinTeam(CommandSourceStack pSource, PlayerTeam pTeam, Collection<ScoreHolder> pPlayers) -
setNametagVisibility
private static int setNametagVisibility(CommandSourceStack pSource, PlayerTeam pTeam, Team.Visibility pVisibility) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setDeathMessageVisibility
private static int setDeathMessageVisibility(CommandSourceStack pSource, PlayerTeam pTeam, Team.Visibility pVisibility) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setCollision
private static int setCollision(CommandSourceStack pSource, PlayerTeam pTeam, Team.CollisionRule pRule) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setFriendlySight
private static int setFriendlySight(CommandSourceStack pSource, PlayerTeam pTeam, boolean pValue) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setFriendlyFire
private static int setFriendlyFire(CommandSourceStack pSource, PlayerTeam pTeam, boolean pValue) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setDisplayName
private static int setDisplayName(CommandSourceStack pSource, PlayerTeam pTeam, Component pValue) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setColor
private static int setColor(CommandSourceStack pSource, PlayerTeam pTeam, ChatFormatting pValue) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
emptyTeam
private static int emptyTeam(CommandSourceStack pSource, PlayerTeam pTeam) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
deleteTeam
-
createTeam
private static int createTeam(CommandSourceStack pSource, String pName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
createTeam
private static int createTeam(CommandSourceStack pSource, String pName, Component pDisplayName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listMembers
-
listTeams
-
setPrefix
-
setSuffix
-