Class TeamCommand


  • public class TeamCommand
    extends java.lang.Object
    • Field Detail

      • 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 Detail

      • TeamCommand

        public TeamCommand()
    • Method Detail

      • register

        public static void register​(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198771_0_)
      • leaveTeam

        private static int leaveTeam​(CommandSource p_198786_0_,
                                     java.util.Collection<java.lang.String> p_198786_1_)
      • joinTeam

        private static int joinTeam​(CommandSource p_198768_0_,
                                    ScorePlayerTeam p_198768_1_,
                                    java.util.Collection<java.lang.String> p_198768_2_)
      • setNametagVisibility

        private static int setNametagVisibility​(CommandSource p_198777_0_,
                                                ScorePlayerTeam p_198777_1_,
                                                Team.Visible p_198777_2_)
                                         throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • setDeathMessageVisibility

        private static int setDeathMessageVisibility​(CommandSource p_198776_0_,
                                                     ScorePlayerTeam p_198776_1_,
                                                     Team.Visible p_198776_2_)
                                              throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • setCollision

        private static int setCollision​(CommandSource p_198787_0_,
                                        ScorePlayerTeam p_198787_1_,
                                        Team.CollisionRule p_198787_2_)
                                 throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • setFriendlySight

        private static int setFriendlySight​(CommandSource p_198783_0_,
                                            ScorePlayerTeam p_198783_1_,
                                            boolean p_198783_2_)
                                     throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • setFriendlyFire

        private static int setFriendlyFire​(CommandSource p_198781_0_,
                                           ScorePlayerTeam p_198781_1_,
                                           boolean p_198781_2_)
                                    throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • setDisplayName

        private static int setDisplayName​(CommandSource p_211920_0_,
                                          ScorePlayerTeam p_211920_1_,
                                          ITextComponent p_211920_2_)
                                   throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • setColor

        private static int setColor​(CommandSource p_198757_0_,
                                    ScorePlayerTeam p_198757_1_,
                                    TextFormatting p_198757_2_)
                             throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • emptyTeam

        private static int emptyTeam​(CommandSource p_198788_0_,
                                     ScorePlayerTeam p_198788_1_)
                              throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • createTeam

        private static int createTeam​(CommandSource p_211916_0_,
                                      java.lang.String p_211916_1_)
                               throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • createTeam

        private static int createTeam​(CommandSource p_211917_0_,
                                      java.lang.String p_211917_1_,
                                      ITextComponent p_211917_2_)
                               throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • listTeams

        private static int listTeams​(CommandSource p_198792_0_)