Class TeamCommand

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

public class TeamCommand extends Object
  • Field Details Link icon

    • ERROR_TEAM_ALREADY_EXISTS Link icon

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_EXISTS
    • ERROR_TEAM_ALREADY_EMPTY Link icon

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_EMPTY
    • ERROR_TEAM_ALREADY_NAME Link icon

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_NAME
    • ERROR_TEAM_ALREADY_COLOR Link icon

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_COLOR
    • ERROR_TEAM_ALREADY_FRIENDLYFIRE_ENABLED Link icon

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYFIRE_ENABLED
    • ERROR_TEAM_ALREADY_FRIENDLYFIRE_DISABLED Link icon

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYFIRE_DISABLED
    • ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_ENABLED Link icon

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_ENABLED
    • ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_DISABLED Link icon

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_ALREADY_FRIENDLYINVISIBLES_DISABLED
    • ERROR_TEAM_NAMETAG_VISIBLITY_UNCHANGED Link icon

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_NAMETAG_VISIBLITY_UNCHANGED
    • ERROR_TEAM_DEATH_MESSAGE_VISIBLITY_UNCHANGED Link icon

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_DEATH_MESSAGE_VISIBLITY_UNCHANGED
    • ERROR_TEAM_COLLISION_UNCHANGED Link icon

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_TEAM_COLLISION_UNCHANGED
  • Constructor Details Link icon

    • TeamCommand Link icon

      public TeamCommand()
  • Method Details Link icon

    • register Link icon

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138878_, CommandBuildContext p_323744_)
    • getFirstMemberName Link icon

      private static Component getFirstMemberName(Collection<ScoreHolder> p_313883_)
    • leaveTeam Link icon

      private static int leaveTeam(CommandSourceStack p_138918_, Collection<ScoreHolder> p_138919_)
    • joinTeam Link icon

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

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

      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 Link icon

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

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

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

      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 Link icon

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

      private static int listTeams(CommandSourceStack p_138882_)
    • setPrefix Link icon

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

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