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 source, String name) private static int
createTeam
(CommandSourceStack source, String name, Component displayName) private static int
deleteTeam
(CommandSourceStack source, PlayerTeam team) private static int
emptyTeam
(CommandSourceStack source, PlayerTeam team) private static Component
getFirstMemberName
(Collection<ScoreHolder> scores) private static int
joinTeam
(CommandSourceStack source, PlayerTeam team, Collection<ScoreHolder> players) private static int
leaveTeam
(CommandSourceStack source, Collection<ScoreHolder> players) Removes the listed players from their teams.private static int
listMembers
(CommandSourceStack source, PlayerTeam team) private static int
listTeams
(CommandSourceStack source) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) private static int
setCollision
(CommandSourceStack source, PlayerTeam team, Team.CollisionRule rule) private static int
setColor
(CommandSourceStack source, PlayerTeam team, ChatFormatting value) private static int
setDeathMessageVisibility
(CommandSourceStack source, PlayerTeam team, Team.Visibility visibility) private static int
setDisplayName
(CommandSourceStack source, PlayerTeam team, Component value) private static int
setFriendlyFire
(CommandSourceStack source, PlayerTeam team, boolean value) private static int
setFriendlySight
(CommandSourceStack source, PlayerTeam team, boolean value) private static int
setNametagVisibility
(CommandSourceStack source, PlayerTeam team, Team.Visibility visibility) private static int
setPrefix
(CommandSourceStack source, PlayerTeam team, Component prefix) private static int
setSuffix
(CommandSourceStack source, PlayerTeam team, Component suffix)
-
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> dispatcher, CommandBuildContext context) -
getFirstMemberName
-
leaveTeam
Removes the listed players from their teams. -
joinTeam
private static int joinTeam(CommandSourceStack source, PlayerTeam team, Collection<ScoreHolder> players) -
setNametagVisibility
private static int setNametagVisibility(CommandSourceStack source, PlayerTeam team, Team.Visibility visibility) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setDeathMessageVisibility
private static int setDeathMessageVisibility(CommandSourceStack source, PlayerTeam team, Team.Visibility visibility) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setCollision
private static int setCollision(CommandSourceStack source, PlayerTeam team, Team.CollisionRule rule) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setFriendlySight
private static int setFriendlySight(CommandSourceStack source, PlayerTeam team, boolean value) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setFriendlyFire
private static int setFriendlyFire(CommandSourceStack source, PlayerTeam team, boolean value) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setDisplayName
private static int setDisplayName(CommandSourceStack source, PlayerTeam team, Component value) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setColor
private static int setColor(CommandSourceStack source, PlayerTeam team, ChatFormatting value) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
emptyTeam
private static int emptyTeam(CommandSourceStack source, PlayerTeam team) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
deleteTeam
-
createTeam
private static int createTeam(CommandSourceStack source, String name) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
createTeam
private static int createTeam(CommandSourceStack source, String name, Component displayName) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listMembers
-
listTeams
-
setPrefix
-
setSuffix
-