Class AbstractCommand

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

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

    • commandProvider

      private static CommandProvider commandProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a:Ly;
      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 Lz;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 Lac;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 Lac;a(Lae;)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
    • getAutoCompleteHints

      public List getAutoCompleteHints(CommandSource source, String[] args, BlockPos pos)
      Specified by:
      getAutoCompleteHints in interface Command
      Mappings:
      Namespace Name Mixin selector
      official a Lac;a(Lae;[Ljava/lang/String;Ldt;)Ljava/util/List;
      intermediary method_10738 Lnet/minecraft/class_1007;method_10738(Lnet/minecraft/class_1061;[Ljava/lang/String;Lnet/minecraft/class_2552;)Ljava/util/List;
      named getAutoCompleteHints Lnet/minecraft/command/Command;getAutoCompleteHints(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;)Ljava/util/List;
    • parseInt

      public static int parseInt(String value)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Ljava/lang/String;)I
      intermediary method_10701 Lnet/minecraft/class_955;method_10701(Ljava/lang/String;)I
      named parseInt Lnet/minecraft/command/AbstractCommand;parseInt(Ljava/lang/String;)I
    • parseClampedInt

      public static int parseClampedInt(String value, int min)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Ljava/lang/String;I)I
      intermediary method_2888 Lnet/minecraft/class_955;method_2888(Ljava/lang/String;I)I
      named parseClampedInt Lnet/minecraft/command/AbstractCommand;parseClampedInt(Ljava/lang/String;I)I
    • parseClampedInt

      public static int parseClampedInt(String value, int min, int max)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Ljava/lang/String;II)I
      intermediary method_2889 Lnet/minecraft/class_955;method_2889(Ljava/lang/String;II)I
      named parseClampedInt Lnet/minecraft/command/AbstractCommand;parseClampedInt(Ljava/lang/String;II)I
    • parseLong

      public static long parseLong(String value)
      Mappings:
      Namespace Name Mixin selector
      official b Lz;b(Ljava/lang/String;)J
      intermediary method_10710 Lnet/minecraft/class_955;method_10710(Ljava/lang/String;)J
      named parseLong Lnet/minecraft/command/AbstractCommand;parseLong(Ljava/lang/String;)J
    • parseClampedLong

      public static long parseClampedLong(String value, long min, long max)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Ljava/lang/String;JJ)J
      intermediary method_10702 Lnet/minecraft/class_955;method_10702(Ljava/lang/String;JJ)J
      named parseClampedLong Lnet/minecraft/command/AbstractCommand;parseClampedLong(Ljava/lang/String;JJ)J
    • getBlockPos

      public static BlockPos getBlockPos(CommandSource source, String[] args, int permissionLevel, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Lae;[Ljava/lang/String;IZ)Ldt;
      intermediary method_10705 Lnet/minecraft/class_955;method_10705(Lnet/minecraft/class_1061;[Ljava/lang/String;IZ)Lnet/minecraft/class_2552;
      named getBlockPos Lnet/minecraft/command/AbstractCommand;getBlockPos(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;IZ)Lnet/minecraft/util/math/BlockPos;
    • parseDouble

      public static double parseDouble(String value)
      Mappings:
      Namespace Name Mixin selector
      official c Lz;c(Ljava/lang/String;)D
      intermediary method_4637 Lnet/minecraft/class_955;method_4637(Ljava/lang/String;)D
      named parseDouble Lnet/minecraft/command/AbstractCommand;parseDouble(Ljava/lang/String;)D
    • parseClampedDouble

      public static double parseClampedDouble(String value, double min)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Ljava/lang/String;D)D
      intermediary method_6334 Lnet/minecraft/class_955;method_6334(Ljava/lang/String;D)D
      named parseClampedDouble Lnet/minecraft/command/AbstractCommand;parseClampedDouble(Ljava/lang/String;D)D
    • parseClampedDouble

      public static double parseClampedDouble(String value, double min, double max)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Ljava/lang/String;DD)D
      intermediary method_6335 Lnet/minecraft/class_955;method_6335(Ljava/lang/String;DD)D
      named parseClampedDouble Lnet/minecraft/command/AbstractCommand;parseClampedDouble(Ljava/lang/String;DD)D
    • parseBoolean

      public static boolean parseBoolean(String value)
      Mappings:
      Namespace Name Mixin selector
      official d Lz;d(Ljava/lang/String;)Z
      intermediary method_6337 Lnet/minecraft/class_955;method_6337(Ljava/lang/String;)Z
      named parseBoolean Lnet/minecraft/command/AbstractCommand;parseBoolean(Ljava/lang/String;)Z
    • getAsPlayer

      public static ServerPlayerEntity getAsPlayer(CommandSource source)
      Mappings:
      Namespace Name Mixin selector
      official b Lz;b(Lae;)Lqw;
      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 a Lz;a(Lae;Ljava/lang/String;)Lqw;
      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;
    • getEntity

      public static Entity getEntity(CommandSource source, String uuid)
      Mappings:
      Namespace Name Mixin selector
      official b Lz;b(Lae;Ljava/lang/String;)Lwv;
      intermediary method_10711 Lnet/minecraft/class_955;method_10711(Lnet/minecraft/class_1061;Ljava/lang/String;)Lnet/minecraft/class_864;
      named getEntity Lnet/minecraft/command/AbstractCommand;getEntity(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)Lnet/minecraft/entity/Entity;
    • getEntity

      public static Entity getEntity(CommandSource source, String uuid, Class entityClass)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Lae;Ljava/lang/String;Ljava/lang/Class;)Lwv;
      intermediary method_10704 Lnet/minecraft/class_955;method_10704(Lnet/minecraft/class_1061;Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/class_864;
      named getEntity Lnet/minecraft/command/AbstractCommand;getEntity(Lnet/minecraft/command/CommandSource;Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/entity/Entity;
    • getEntities

      public static List getEntities(CommandSource source, String uuid)
      Mappings:
      Namespace Name Mixin selector
      official c Lz;c(Lae;Ljava/lang/String;)Ljava/util/List;
      intermediary method_10713 Lnet/minecraft/class_955;method_10713(Lnet/minecraft/class_1061;Ljava/lang/String;)Ljava/util/List;
      named getEntities Lnet/minecraft/command/AbstractCommand;getEntities(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)Ljava/util/List;
    • method_5468

      public static String method_5468(CommandSource source, String string)
      Mappings:
      Namespace Name Mixin selector
      official d Lz;d(Lae;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_10714

      public static String method_10714(CommandSource source, String string)
      Mappings:
      Namespace Name Mixin selector
      official e Lz;e(Lae;Ljava/lang/String;)Ljava/lang/String;
      intermediary method_10714 Lnet/minecraft/class_955;method_10714(Lnet/minecraft/class_1061;Ljava/lang/String;)Ljava/lang/String;
      named method_10714 Lnet/minecraft/command/AbstractCommand;method_10714(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 Lz;a(Lae;[Ljava/lang/String;I)Lho;
      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 b Lz;b(Lae;[Ljava/lang/String;IZ)Lho;
      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_10706

      public static String method_10706(String[] string, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a([Ljava/lang/String;I)Ljava/lang/String;
      intermediary method_10706 Lnet/minecraft/class_955;method_10706([Ljava/lang/String;I)Ljava/lang/String;
      named method_10706 Lnet/minecraft/command/AbstractCommand;method_10706([Ljava/lang/String;I)Ljava/lang/String;
    • method_10700

      public static class_2588 method_10700(double double2, String string, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(DLjava/lang/String;Z)Laa;
      intermediary method_10700 Lnet/minecraft/class_955;method_10700(DLjava/lang/String;Z)Lnet/minecraft/class_2588;
      named method_10700 Lnet/minecraft/command/AbstractCommand;method_10700(DLjava/lang/String;Z)Lnet/minecraft/class_2588;
    • method_10699

      public static class_2588 method_10699(double double2, String string, int int2, int int3, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(DLjava/lang/String;IIZ)Laa;
      intermediary method_10699 Lnet/minecraft/class_955;method_10699(DLjava/lang/String;IIZ)Lnet/minecraft/class_2588;
      named method_10699 Lnet/minecraft/command/AbstractCommand;method_10699(DLjava/lang/String;IIZ)Lnet/minecraft/class_2588;
    • parseDouble

      public static double parseDouble(double double2, String value, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official b Lz;b(DLjava/lang/String;Z)D
      intermediary method_10709 Lnet/minecraft/class_955;method_10709(DLjava/lang/String;Z)D
      named parseDouble Lnet/minecraft/command/AbstractCommand;parseDouble(DLjava/lang/String;Z)D
    • parseDouble

      public static double parseDouble(double double2, String value, int min, int max, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official b Lz;b(DLjava/lang/String;IIZ)D
      intermediary method_6333 Lnet/minecraft/class_955;method_6333(DLjava/lang/String;IIZ)D
      named parseDouble Lnet/minecraft/command/AbstractCommand;parseDouble(DLjava/lang/String;IIZ)D
    • getItem

      public static Item getItem(CommandSource source, String identifier)
      Mappings:
      Namespace Name Mixin selector
      official f Lz;f(Lae;Ljava/lang/String;)Lalq;
      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 Lz;g(Lae;Ljava/lang/String;)Latr;
      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 Lz;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;
    • concat

      public static Text concat(List texts)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Ljava/util/List;)Lho;
      intermediary method_10703 Lnet/minecraft/class_955;method_10703(Ljava/util/List;)Lnet/minecraft/class_1982;
      named concat Lnet/minecraft/command/AbstractCommand;concat(Ljava/util/List;)Lnet/minecraft/text/Text;
    • concat

      public static String concat(Collection strings)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;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_10707

      public static List method_10707(String[] string, int int2, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a([Ljava/lang/String;ILdt;)Ljava/util/List;
      intermediary method_10707 Lnet/minecraft/class_955;method_10707([Ljava/lang/String;ILnet/minecraft/class_2552;)Ljava/util/List;
      named method_10707 Lnet/minecraft/command/AbstractCommand;method_10707([Ljava/lang/String;ILnet/minecraft/util/math/BlockPos;)Ljava/util/List;
    • method_2883

      public static boolean method_2883(String string, String string2)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;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 Lz;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_10708

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

      public boolean isUsernameAtIndex(String[] args, int index)
      Specified by:
      isUsernameAtIndex in interface Command
      Mappings:
      Namespace Name Mixin selector
      official b Lac;b([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
    • run

      public static void run(CommandSource source, Command command, String label, Object[] args)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Lae;Lac;Ljava/lang/String;[Ljava/lang/Object;)V
      intermediary method_2890 Lnet/minecraft/class_955;method_2890(Lnet/minecraft/class_1061;Lnet/minecraft/class_1007;Ljava/lang/String;[Ljava/lang/Object;)V
      named run Lnet/minecraft/command/AbstractCommand;run(Lnet/minecraft/command/CommandSource;Lnet/minecraft/command/Command;Ljava/lang/String;[Ljava/lang/Object;)V
    • run

      public static void run(CommandSource source, Command command, int permissionLevel, String label, Object[] args)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Lae;Lac;ILjava/lang/String;[Ljava/lang/Object;)V
      intermediary method_2886 Lnet/minecraft/class_955;method_2886(Lnet/minecraft/class_1061;Lnet/minecraft/class_1007;ILjava/lang/String;[Ljava/lang/Object;)V
      named run Lnet/minecraft/command/AbstractCommand;run(Lnet/minecraft/command/CommandSource;Lnet/minecraft/command/Command;ILjava/lang/String;[Ljava/lang/Object;)V
    • setCommandProvider

      public static void setCommandProvider(CommandProvider provider)
      Mappings:
      Namespace Name Mixin selector
      official a Lz;a(Ly;)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 Lz;a(Lac;)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