Package net.minecraft.server.command
Class TeamCommand
java.lang.Object
net.minecraft.server.command.TeamCommand
public class TeamCommand extends Object
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ADD_DUPLICATE_EXCEPTION
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ADD_LONG_NAME_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
EMPTY_UNCHANGED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
OPTION_COLLISION_RULE_UNCHANGED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
OPTION_COLOR_UNCHANGED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
OPTION_DEATH_MESSAGE_VISIBILITY_UNCHANGED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
OPTION_FRIENDLY_FIRE_ALREADY_DISABLED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
OPTION_FRIENDLY_FIRE_ALREADY_ENABLED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
OPTION_NAME_UNCHANGED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
OPTION_NAMETAG_VISIBILITY_UNCHANGED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
OPTION_SEE_FRIENDLY_INVISIBLES_ALREADY_DISABLED_EXCEPTION
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
OPTION_SEE_FRIENDLY_INVISIBLES_ALREADY_ENABLED_EXCEPTION
-
Constructor Summary
Constructors Constructor Description TeamCommand()
-
Method Summary
-
Field Details
-
ADD_DUPLICATE_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ADD_DUPLICATE_EXCEPTION -
ADD_LONG_NAME_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ADD_LONG_NAME_EXCEPTION -
EMPTY_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EMPTY_UNCHANGED_EXCEPTION -
OPTION_NAME_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OPTION_NAME_UNCHANGED_EXCEPTION -
OPTION_COLOR_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OPTION_COLOR_UNCHANGED_EXCEPTION -
OPTION_FRIENDLY_FIRE_ALREADY_ENABLED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OPTION_FRIENDLY_FIRE_ALREADY_ENABLED_EXCEPTION -
OPTION_FRIENDLY_FIRE_ALREADY_DISABLED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OPTION_FRIENDLY_FIRE_ALREADY_DISABLED_EXCEPTION -
OPTION_SEE_FRIENDLY_INVISIBLES_ALREADY_ENABLED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OPTION_SEE_FRIENDLY_INVISIBLES_ALREADY_ENABLED_EXCEPTION -
OPTION_SEE_FRIENDLY_INVISIBLES_ALREADY_DISABLED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OPTION_SEE_FRIENDLY_INVISIBLES_ALREADY_DISABLED_EXCEPTION -
OPTION_NAMETAG_VISIBILITY_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OPTION_NAMETAG_VISIBILITY_UNCHANGED_EXCEPTION -
OPTION_DEATH_MESSAGE_VISIBILITY_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OPTION_DEATH_MESSAGE_VISIBILITY_UNCHANGED_EXCEPTION -
OPTION_COLLISION_RULE_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType OPTION_COLLISION_RULE_UNCHANGED_EXCEPTION
-
-
Constructor Details
-
TeamCommand
public TeamCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
executeLeave
-
executeJoin
-
executeModifyNametagVisibility
private static int executeModifyNametagVisibility(ServerCommandSource source, Team team, AbstractTeam.VisibilityRule visibility) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeModifyDeathMessageVisibility
private static int executeModifyDeathMessageVisibility(ServerCommandSource source, Team team, AbstractTeam.VisibilityRule visibility) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeModifyCollisionRule
private static int executeModifyCollisionRule(ServerCommandSource source, Team team, AbstractTeam.CollisionRule collisionRule) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeModifySeeFriendlyInvisibles
private static int executeModifySeeFriendlyInvisibles(ServerCommandSource source, Team team, boolean allowed) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeModifyFriendlyFire
private static int executeModifyFriendlyFire(ServerCommandSource source, Team team, boolean allowed) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeModifyDisplayName
private static int executeModifyDisplayName(ServerCommandSource source, Team team, Text displayName) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeModifyColor
private static int executeModifyColor(ServerCommandSource source, Team team, Formatting color) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeEmpty
private static int executeEmpty(ServerCommandSource source, Team team) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeRemove
-
executeAdd
private static int executeAdd(ServerCommandSource source, String team) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeAdd
private static int executeAdd(ServerCommandSource source, String team, Text displayName) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
executeListMembers
-
executeListTeams
-
executeModifyPrefix
-
executeModifySuffix
-