Class TeamCommand

java.lang.Object
net.minecraft.server.command.TeamCommand

public class TeamCommand
extends Object
  • 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

      private static int executeLeave​(ServerCommandSource source, Collection<String> members)
    • executeJoin

      private static int executeJoin​(ServerCommandSource source, Team team, Collection<String> members)
    • 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

      private static int executeRemove​(ServerCommandSource source, Team team)
    • 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

      private static int executeListMembers​(ServerCommandSource source, Team team)
    • executeListTeams

      private static int executeListTeams​(ServerCommandSource source)
    • executeModifyPrefix

      private static int executeModifyPrefix​(ServerCommandSource source, Team team, Text prefix)
    • executeModifySuffix

      private static int executeModifySuffix​(ServerCommandSource source, Team team, Text suffix)