net.minecraft.server.command

public class TeamCommand

net.minecraft.server.commands.TeamCommand
net.minecraft.server.commands.TeamCommand
net.minecraft.class_3142
net.minecraft.server.command.TeamCommand

Field summary

Modifier and TypeField
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_EXISTS
ERROR_TEAM_ALREADY_EXISTS
field_13749
ADD_DUPLICATE_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_EMPTY
ERROR_TEAM_ALREADY_EMPTY
field_13751
EMPTY_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_NAME
ERROR_TEAM_ALREADY_NAME
field_13755
OPTION_NAME_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_COLOR
ERROR_TEAM_ALREADY_COLOR
field_13746
OPTION_COLOR_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_FRIENDLYFIRE_ENABLED
ERROR_TEAM_ALREADY_FRIENDLYFIRE_ENABLED
field_13753
OPTION_FRIENDLY_FIRE_ALREADY_ENABLED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_FRIENDLYFIRE_DISABLED
ERROR_TEAM_ALREADY_FRIENDLYFIRE_DISABLED
field_13754
OPTION_FRIENDLY_FIRE_ALREADY_DISABLED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_ENABLED
ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_ENABLED
field_13747
OPTION_SEE_FRIENDLY_INVISIBLES_ALREADY_ENABLED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_DISABLED
ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_DISABLED
field_13756
OPTION_SEE_FRIENDLY_INVISIBLES_ALREADY_DISABLED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_NAMETAG_VISIBLITY_UNCHANGED
ERROR_TEAM_NAMETAG_VISIBLITY_UNCHANGED
field_13752
OPTION_NAMETAG_VISIBILITY_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_DEATH_MESSAGE_VISIBLITY_UNCHANGED
ERROR_TEAM_DEATH_MESSAGE_VISIBLITY_UNCHANGED
field_13757
OPTION_DEATH_MESSAGE_VISIBILITY_UNCHANGED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_TEAM_COLLISION_UNCHANGED
ERROR_TEAM_COLLISION_UNCHANGED
field_13750
OPTION_COLLISION_RULE_UNCHANGED_EXCEPTION

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
method_13736(com.mojang.brigadier.CommandDispatcher<class_2168> arg0, class_7157 arg1)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess)
private static Text
getFirstMemberName(Collection<ScoreHolder> members)
getFirstMemberName(Collection<ScoreHolder> members)
method_55372(Collection<class_9015> arg0)
getMemberName(Collection<ScoreHolder> members)
private static int
leaveTeam(CommandSourceStack source, Collection<ScoreHolder> members)
leaveTeam(CommandSourceStack source, Collection<ScoreHolder> members)
method_13714(class_2168 arg0, Collection<class_9015> arg1)
executeLeave(ServerCommandSource source, Collection<ScoreHolder> members)
private static int
joinTeam(CommandSourceStack source, PlayerTeam team, Collection<ScoreHolder> members)
joinTeam(CommandSourceStack source, PlayerTeam team, Collection<ScoreHolder> members)
method_13720(class_2168 arg0, class_268 arg1, Collection<class_9015> arg2)
executeJoin(ServerCommandSource source, Team team, Collection<ScoreHolder> members)
private static int
setNametagVisibility(CommandSourceStack source, PlayerTeam team, Team$Visibility visibility)
setNametagVisibility(CommandSourceStack source, PlayerTeam team, Team$Visibility visibility)
method_13732(class_2168 arg0, class_268 arg1, class_270$class_272 arg2)
executeModifyNametagVisibility(ServerCommandSource source, Team team, AbstractTeam$VisibilityRule visibility)
private static int
setDeathMessageVisibility(CommandSourceStack source, PlayerTeam team, Team$Visibility visibility)
setDeathMessageVisibility(CommandSourceStack source, PlayerTeam team, Team$Visibility visibility)
method_13735(class_2168 arg0, class_268 arg1, class_270$class_272 arg2)
executeModifyDeathMessageVisibility(ServerCommandSource source, Team team, AbstractTeam$VisibilityRule visibility)
private static int
setCollision(CommandSourceStack source, PlayerTeam team, Team$CollisionRule collision)
setCollision(CommandSourceStack source, PlayerTeam team, Team$CollisionRule collision)
method_13713(class_2168 arg0, class_268 arg1, class_270$class_271 arg2)
executeModifyCollisionRule(ServerCommandSource source, Team team, AbstractTeam$CollisionRule collisionRule)
private static int
setFriendlySight(CommandSourceStack source, PlayerTeam team, boolean allowed)
setFriendlySight(CommandSourceStack source, PlayerTeam team, boolean allowed)
method_13751(class_2168 arg0, class_268 arg1, boolean arg2)
executeModifySeeFriendlyInvisibles(ServerCommandSource source, Team team, boolean allowed)
private static int
setFriendlyFire(CommandSourceStack source, PlayerTeam team, boolean allowed)
setFriendlyFire(CommandSourceStack source, PlayerTeam team, boolean allowed)
method_13754(class_2168 arg0, class_268 arg1, boolean arg2)
executeModifyFriendlyFire(ServerCommandSource source, Team team, boolean allowed)
private static int
setDisplayName(CommandSourceStack source, PlayerTeam team, Component displayName)
setDisplayName(CommandSourceStack source, PlayerTeam team, Component displayName)
method_13711(class_2168 arg0, class_268 arg1, class_2561 arg2)
executeModifyDisplayName(ServerCommandSource source, Team team, Text displayName)
private static int
setColor(CommandSourceStack source, PlayerTeam team, ChatFormatting color)
setColor(CommandSourceStack source, PlayerTeam team, ChatFormatting color)
method_13745(class_2168 arg0, class_268 arg1, class_124 arg2)
executeModifyColor(ServerCommandSource source, Team team, Formatting color)
private static int
emptyTeam(CommandSourceStack source, PlayerTeam team)
emptyTeam(CommandSourceStack source, PlayerTeam team)
method_13723(class_2168 arg0, class_268 arg1)
executeEmpty(ServerCommandSource source, Team team)
private static int
deleteTeam(CommandSourceStack source, PlayerTeam team)
deleteTeam(CommandSourceStack source, PlayerTeam team)
method_13747(class_2168 arg0, class_268 arg1)
executeRemove(ServerCommandSource source, Team team)
private static int
createTeam(CommandSourceStack source, String name)
createTeam(CommandSourceStack source, String name)
method_13757(class_2168 arg0, String arg1)
executeAdd(ServerCommandSource source, String team)
private static int
createTeam(CommandSourceStack source, String name, Component displayName)
createTeam(CommandSourceStack source, String name, Component displayName)
method_13715(class_2168 arg0, String arg1, class_2561 arg2)
executeAdd(ServerCommandSource source, String team, Text displayName)
private static int
listMembers(CommandSourceStack source, PlayerTeam team)
listMembers(CommandSourceStack source, PlayerTeam team)
method_13748(class_2168 arg0, class_268 arg1)
executeListMembers(ServerCommandSource source, Team team)
private static int
listTeams(CommandSourceStack source)
listTeams(CommandSourceStack source)
method_13728(class_2168 arg0)
executeListTeams(ServerCommandSource source)
private static int
setPrefix(CommandSourceStack source, PlayerTeam team, Component prefix)
setPrefix(CommandSourceStack source, PlayerTeam team, Component prefix)
method_13743(class_2168 arg0, class_268 arg1, class_2561 arg2)
executeModifyPrefix(ServerCommandSource source, Team team, Text prefix)
private static int
setSuffix(CommandSourceStack source, PlayerTeam team, Component suffix)
setSuffix(CommandSourceStack source, PlayerTeam team, Component suffix)
method_13756(class_2168 arg0, class_268 arg1, class_2561 arg2)
executeModifySuffix(ServerCommandSource source, Team team, Text suffix)