Class AbstractCommand

java.lang.Object
net.minecraft.command.AbstractCommand
All Implemented Interfaces:
Comparable, Command
Direct Known Subclasses:
AchievementCommand, BanCommand, BanIpCommand, BanListCommand, ClearCommand, DebugCommand, DeOpCommand, DifficultyCommand, EffectCommand, EnchantCommand, ExperienceCommand, GameModeCommand, GameRuleCommand, GiveCommand, HelpCommand, KickCommand, KillCommand, ListCommand, MeCommand, MessageCommand, OpCommand, PardonCommand, PardonIpCommand, PlaySoundCommand, PublishCommand, SaveAllCommand, SaveOffCommand, SaveOnCommand, SayCommand, ScoreboardCommand, SeedCommand, SetBlockCommand, SetIdleTimeoutCommand, SetWorldSpawnCommand, SpawnPointCommand, SpreadPlayersCommand, StopCommand, SummonCommand, TeleportCommand, TellRawCommand, TestForBlockCommand, TestForCommand, TimeCommand, ToggleDownfallCommand, WeatherCommand, WhitelistCommand

public abstract class AbstractCommand extends Object implements Command
Mappings:
Namespace Name
official y
intermediary net/minecraft/class_955
named net/minecraft/command/AbstractCommand
  • Field Details

    • commandProvider

      private static CommandProvider commandProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a:Lx;
      intermediary field_3733 Lnet/minecraft/class_955;field_3733:Lnet/minecraft/class_928;
      named commandProvider Lnet/minecraft/command/AbstractCommand;commandProvider:Lnet/minecraft/command/CommandProvider;
  • Constructor Details

    • AbstractCommand

      public AbstractCommand()
  • Method Details

    • getPermissionLevel

      public int getPermissionLevel()
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a()I
      intermediary method_4634 Lnet/minecraft/class_955;method_4634()I
      named getPermissionLevel Lnet/minecraft/command/AbstractCommand;getPermissionLevel()I
    • getAliases

      public List getAliases()
      Specified by:
      getAliases in interface Command
      Mappings:
      Namespace Name Mixin selector
      official b Laa;b()Ljava/util/List;
      intermediary method_3274 Lnet/minecraft/class_1007;method_3274()Ljava/util/List;
      named getAliases Lnet/minecraft/command/Command;getAliases()Ljava/util/List;
    • isAccessible

      public boolean isAccessible(CommandSource source)
      Specified by:
      isAccessible in interface Command
      Mappings:
      Namespace Name Mixin selector
      official a Laa;a(Lac;)Z
      intermediary method_3278 Lnet/minecraft/class_1007;method_3278(Lnet/minecraft/class_1061;)Z
      named isAccessible Lnet/minecraft/command/Command;isAccessible(Lnet/minecraft/command/CommandSource;)Z
    • method_3276

      public List method_3276(CommandSource source, String[] string)
      Specified by:
      method_3276 in interface Command
      Mappings:
      Namespace Name Mixin selector
      official a Laa;a(Lac;[Ljava/lang/String;)Ljava/util/List;
      intermediary method_3276 Lnet/minecraft/class_1007;method_3276(Lnet/minecraft/class_1061;[Ljava/lang/String;)Ljava/util/List;
      named method_3276 Lnet/minecraft/command/Command;method_3276(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;)Ljava/util/List;
    • getInt

      public static int getInt(CommandSource source, String value)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Lac;Ljava/lang/String;)I
      intermediary method_2887 Lnet/minecraft/class_955;method_2887(Lnet/minecraft/class_1061;Ljava/lang/String;)I
      named getInt Lnet/minecraft/command/AbstractCommand;getInt(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)I
    • method_2888

      public static int method_2888(CommandSource source, String value, int min)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Lac;Ljava/lang/String;I)I
      intermediary method_2888 Lnet/minecraft/class_955;method_2888(Lnet/minecraft/class_1061;Ljava/lang/String;I)I
      named method_2888 Lnet/minecraft/command/AbstractCommand;method_2888(Lnet/minecraft/command/CommandSource;Ljava/lang/String;I)I
    • getClampedInt

      public static int getClampedInt(CommandSource source, String value, int min, int max)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Lac;Ljava/lang/String;II)I
      intermediary method_2889 Lnet/minecraft/class_955;method_2889(Lnet/minecraft/class_1061;Ljava/lang/String;II)I
      named getClampedInt Lnet/minecraft/command/AbstractCommand;getClampedInt(Lnet/minecraft/command/CommandSource;Ljava/lang/String;II)I
    • getDouble

      public static double getDouble(CommandSource source, String value)
      Mappings:
      Namespace Name Mixin selector
      official b Ly;b(Lac;Ljava/lang/String;)D
      intermediary method_4637 Lnet/minecraft/class_955;method_4637(Lnet/minecraft/class_1061;Ljava/lang/String;)D
      named getDouble Lnet/minecraft/command/AbstractCommand;getDouble(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)D
    • method_6334

      public static double method_6334(CommandSource source, String value, double min)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Lac;Ljava/lang/String;D)D
      intermediary method_6334 Lnet/minecraft/class_955;method_6334(Lnet/minecraft/class_1061;Ljava/lang/String;D)D
      named method_6334 Lnet/minecraft/command/AbstractCommand;method_6334(Lnet/minecraft/command/CommandSource;Ljava/lang/String;D)D
    • getClampedDouble

      public static double getClampedDouble(CommandSource source, String value, double min, double max)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Lac;Ljava/lang/String;DD)D
      intermediary method_6335 Lnet/minecraft/class_955;method_6335(Lnet/minecraft/class_1061;Ljava/lang/String;DD)D
      named getClampedDouble Lnet/minecraft/command/AbstractCommand;getClampedDouble(Lnet/minecraft/command/CommandSource;Ljava/lang/String;DD)D
    • getBoolean

      public static boolean getBoolean(CommandSource source, String value)
      Mappings:
      Namespace Name Mixin selector
      official c Ly;c(Lac;Ljava/lang/String;)Z
      intermediary method_6337 Lnet/minecraft/class_955;method_6337(Lnet/minecraft/class_1061;Ljava/lang/String;)Z
      named getBoolean Lnet/minecraft/command/AbstractCommand;getBoolean(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)Z
    • getAsPlayer

      public static ServerPlayerEntity getAsPlayer(CommandSource source)
      Mappings:
      Namespace Name Mixin selector
      official b Ly;b(Lac;)Lml;
      intermediary method_4638 Lnet/minecraft/class_955;method_4638(Lnet/minecraft/class_1061;)Lnet/minecraft/class_798;
      named getAsPlayer Lnet/minecraft/command/AbstractCommand;getAsPlayer(Lnet/minecraft/command/CommandSource;)Lnet/minecraft/entity/player/ServerPlayerEntity;
    • getPlayer

      public static ServerPlayerEntity getPlayer(CommandSource source, String name)
      Mappings:
      Namespace Name Mixin selector
      official d Ly;d(Lac;Ljava/lang/String;)Lml;
      intermediary method_4639 Lnet/minecraft/class_955;method_4639(Lnet/minecraft/class_1061;Ljava/lang/String;)Lnet/minecraft/class_798;
      named getPlayer Lnet/minecraft/command/AbstractCommand;getPlayer(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)Lnet/minecraft/entity/player/ServerPlayerEntity;
    • method_5468

      public static String method_5468(CommandSource source, String string)
      Mappings:
      Namespace Name Mixin selector
      official e Ly;e(Lac;Ljava/lang/String;)Ljava/lang/String;
      intermediary method_5468 Lnet/minecraft/class_955;method_5468(Lnet/minecraft/class_1061;Ljava/lang/String;)Ljava/lang/String;
      named method_5468 Lnet/minecraft/command/AbstractCommand;method_5468(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)Ljava/lang/String;
    • method_4635

      public static Text method_4635(CommandSource source, String[] string, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Lac;[Ljava/lang/String;I)Lez;
      intermediary method_4635 Lnet/minecraft/class_955;method_4635(Lnet/minecraft/class_1061;[Ljava/lang/String;I)Lnet/minecraft/class_1982;
      named method_4635 Lnet/minecraft/command/AbstractCommand;method_4635(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;I)Lnet/minecraft/text/Text;
    • method_8406

      public static Text method_8406(CommandSource source, String[] string, int int2, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Lac;[Ljava/lang/String;IZ)Lez;
      intermediary method_8406 Lnet/minecraft/class_955;method_8406(Lnet/minecraft/class_1061;[Ljava/lang/String;IZ)Lnet/minecraft/class_1982;
      named method_8406 Lnet/minecraft/command/AbstractCommand;method_8406(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;IZ)Lnet/minecraft/text/Text;
    • method_8408

      public static String method_8408(CommandSource commandSource, String[] string, int int2)
      Mappings:
      Namespace Name Mixin selector
      official b Ly;b(Lac;[Ljava/lang/String;I)Ljava/lang/String;
      intermediary method_8408 Lnet/minecraft/class_955;method_8408(Lnet/minecraft/class_1061;[Ljava/lang/String;I)Ljava/lang/String;
      named method_8408 Lnet/minecraft/command/AbstractCommand;method_8408(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;I)Ljava/lang/String;
    • method_6332

      public static double method_6332(CommandSource commandSource, double double2, String string)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Lac;DLjava/lang/String;)D
      intermediary method_6332 Lnet/minecraft/class_955;method_6332(Lnet/minecraft/class_1061;DLjava/lang/String;)D
      named method_6332 Lnet/minecraft/command/AbstractCommand;method_6332(Lnet/minecraft/command/CommandSource;DLjava/lang/String;)D
    • method_6333

      public static double method_6333(CommandSource commandSource, double double2, String string, int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Lac;DLjava/lang/String;II)D
      intermediary method_6333 Lnet/minecraft/class_955;method_6333(Lnet/minecraft/class_1061;DLjava/lang/String;II)D
      named method_6333 Lnet/minecraft/command/AbstractCommand;method_6333(Lnet/minecraft/command/CommandSource;DLjava/lang/String;II)D
    • getItem

      public static Item getItem(CommandSource source, String identifier)
      Mappings:
      Namespace Name Mixin selector
      official f Ly;f(Lac;Ljava/lang/String;)Labm;
      intermediary method_8409 Lnet/minecraft/class_955;method_8409(Lnet/minecraft/class_1061;Ljava/lang/String;)Lnet/minecraft/class_1069;
      named getItem Lnet/minecraft/command/AbstractCommand;getItem(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)Lnet/minecraft/item/Item;
    • getBlock

      public static Block getBlock(CommandSource source, String identifier)
      Mappings:
      Namespace Name Mixin selector
      official g Ly;g(Lac;Ljava/lang/String;)Laht;
      intermediary method_8410 Lnet/minecraft/class_955;method_8410(Lnet/minecraft/class_1061;Ljava/lang/String;)Lnet/minecraft/class_197;
      named getBlock Lnet/minecraft/command/AbstractCommand;getBlock(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)Lnet/minecraft/block/Block;
    • concat

      public static String concat(Object[] args)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a([Ljava/lang/Object;)Ljava/lang/String;
      intermediary method_2891 Lnet/minecraft/class_955;method_2891([Ljava/lang/Object;)Ljava/lang/String;
      named concat Lnet/minecraft/command/AbstractCommand;concat([Ljava/lang/Object;)Ljava/lang/String;
    • method_8407

      public static Text method_8407(Text[] text)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a([Lez;)Lez;
      intermediary method_8407 Lnet/minecraft/class_955;method_8407([Lnet/minecraft/class_1982;)Lnet/minecraft/class_1982;
      named method_8407 Lnet/minecraft/command/AbstractCommand;method_8407([Lnet/minecraft/text/Text;)Lnet/minecraft/text/Text;
    • concat

      public static String concat(Collection strings)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Ljava/util/Collection;)Ljava/lang/String;
      intermediary method_5467 Lnet/minecraft/class_955;method_5467(Ljava/util/Collection;)Ljava/lang/String;
      named concat Lnet/minecraft/command/AbstractCommand;concat(Ljava/util/Collection;)Ljava/lang/String;
    • method_2883

      public static boolean method_2883(String string, String string2)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Ljava/lang/String;Ljava/lang/String;)Z
      intermediary method_2883 Lnet/minecraft/class_955;method_2883(Ljava/lang/String;Ljava/lang/String;)Z
      named method_2883 Lnet/minecraft/command/AbstractCommand;method_2883(Ljava/lang/String;Ljava/lang/String;)Z
    • method_2894

      public static List method_2894(String[] string, String[] string2)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a([Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List;
      intermediary method_2894 Lnet/minecraft/class_955;method_2894([Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List;
      named method_2894 Lnet/minecraft/command/AbstractCommand;method_2894([Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List;
    • method_2893

      public static List method_2893(String[] string, Iterable iterable)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a([Ljava/lang/String;Ljava/lang/Iterable;)Ljava/util/List;
      intermediary method_2893 Lnet/minecraft/class_955;method_2893([Ljava/lang/String;Ljava/lang/Iterable;)Ljava/util/List;
      named method_2893 Lnet/minecraft/command/AbstractCommand;method_2893([Ljava/lang/String;Ljava/lang/Iterable;)Ljava/util/List;
    • isUsernameAtIndex

      public boolean isUsernameAtIndex(String[] args, int index)
      Specified by:
      isUsernameAtIndex in interface Command
      Mappings:
      Namespace Name Mixin selector
      official a Laa;a([Ljava/lang/String;I)Z
      intermediary method_4674 Lnet/minecraft/class_1007;method_4674([Ljava/lang/String;I)Z
      named isUsernameAtIndex Lnet/minecraft/command/Command;isUsernameAtIndex([Ljava/lang/String;I)Z
    • method_2890

      public static void method_2890(CommandSource commandSource, String string, Object[] object)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Lac;Ljava/lang/String;[Ljava/lang/Object;)V
      intermediary method_2890 Lnet/minecraft/class_955;method_2890(Lnet/minecraft/class_1061;Ljava/lang/String;[Ljava/lang/Object;)V
      named method_2890 Lnet/minecraft/command/AbstractCommand;method_2890(Lnet/minecraft/command/CommandSource;Ljava/lang/String;[Ljava/lang/Object;)V
    • method_2886

      public static void method_2886(CommandSource commandSource, int int2, String string, Object[] object)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Lac;ILjava/lang/String;[Ljava/lang/Object;)V
      intermediary method_2886 Lnet/minecraft/class_955;method_2886(Lnet/minecraft/class_1061;ILjava/lang/String;[Ljava/lang/Object;)V
      named method_2886 Lnet/minecraft/command/AbstractCommand;method_2886(Lnet/minecraft/command/CommandSource;ILjava/lang/String;[Ljava/lang/Object;)V
    • setCommandProvider

      public static void setCommandProvider(CommandProvider provider)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Lx;)V
      intermediary method_2884 Lnet/minecraft/class_955;method_2884(Lnet/minecraft/class_928;)V
      named setCommandProvider Lnet/minecraft/command/AbstractCommand;setCommandProvider(Lnet/minecraft/command/CommandProvider;)V
    • compareTo

      public int compareTo(Command command)
      Mappings:
      Namespace Name Mixin selector
      official a Ly;a(Laa;)I
      intermediary method_2885 Lnet/minecraft/class_955;method_2885(Lnet/minecraft/class_1007;)I
      named compareTo Lnet/minecraft/command/AbstractCommand;compareTo(Lnet/minecraft/command/Command;)I