Class TeamCommand

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

public class TeamCommand extends Object
  • Field Details

    • ERROR_TEAM_ALREADY_EXISTS

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_EXISTS
    • ERROR_TEAM_NAME_TOO_LONG

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_TEAM_NAME_TOO_LONG
    • 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_)
    • leaveTeam

      private static int leaveTeam(CommandSourceStack p_138918_, Collection<String> p_138919_)
    • joinTeam

      private static int joinTeam(CommandSourceStack p_138895_, PlayerTeam p_138896_, Collection<String> p_138897_)
    • setNametagVisibility

      private static int setNametagVisibility(CommandSourceStack p_138891_, PlayerTeam p_138892_, Team.Visibility p_138893_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setDeathMessageVisibility

      private static int setDeathMessageVisibility(CommandSourceStack p_138930_, PlayerTeam p_138931_, Team.Visibility p_138932_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setCollision

      private static int setCollision(CommandSourceStack p_138887_, PlayerTeam p_138888_, Team.CollisionRule p_138889_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setFriendlySight

      private static int setFriendlySight(CommandSourceStack p_138907_, PlayerTeam p_138908_, boolean p_138909_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setFriendlyFire

      private static int setFriendlyFire(CommandSourceStack p_138938_, PlayerTeam p_138939_, boolean p_138940_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setDisplayName

      private static int setDisplayName(CommandSourceStack p_138903_, PlayerTeam p_138904_, Component p_138905_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • setColor

      private static int setColor(CommandSourceStack p_138899_, PlayerTeam p_138900_, ChatFormatting p_138901_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • emptyTeam

      private static int emptyTeam(CommandSourceStack p_138884_, PlayerTeam p_138885_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • deleteTeam

      private static int deleteTeam(CommandSourceStack p_138927_, PlayerTeam p_138928_)
    • createTeam

      private static int createTeam(CommandSourceStack p_138911_, String p_138912_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • createTeam

      private static int createTeam(CommandSourceStack p_138914_, String p_138915_, Component p_138916_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listMembers

      private static int listMembers(CommandSourceStack p_138944_, PlayerTeam p_138945_)
    • listTeams

      private static int listTeams(CommandSourceStack p_138882_)
    • setPrefix

      private static int setPrefix(CommandSourceStack p_138934_, PlayerTeam p_138935_, Component p_138936_)
    • setSuffix

      private static int setSuffix(CommandSourceStack p_138947_, PlayerTeam p_138948_, Component p_138949_)