Package net.minecraft.command
Class AbstractCommand
java.lang.Object
net.minecraft.command.AbstractCommand
- All Implemented Interfaces:
Comparable<Command>,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
- Mappings:
Namespace Name official iintermediary net/minecraft/class_955named net/minecraft/command/AbstractCommand
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic Stringstatic Stringconcat(Collection<String> strings) static Textstatic ServerPlayerEntitygetAsPlayer(CommandSource source) getAutoCompleteHints(CommandSource source, String[] args, BlockPos pos) static BlockgetBlock(CommandSource source, String identifier) static BlockPosgetBlockPos(CommandSource source, String[] args, int permissionLevel, boolean bool) static AbstractCommand.CoordinategetCoordinate(double double2, String value, boolean bool) static AbstractCommand.CoordinategetCoordinate(double double2, String value, int min, int max, boolean bool) getEntities(CommandSource source, String uuid) static EntitygetEntity(CommandSource source, String uuid) static <T extends Entity>
TgetEntity(CommandSource source, String uuid, Class<? extends T> entityClass) static ItemgetItem(CommandSource source, String identifier) intstatic ServerPlayerEntitygetPlayer(CommandSource source, String name) booleanisAccessible(CommandSource source) booleanisUsernameAtIndex(String[] args, int index) static Stringmethod_10706(String[] string, int int2) method_10707(String[] string, int int2, BlockPos pos) method_10708(String[] string, Collection<?> collection) method_10712(String[] string, int int2, BlockPos pos) static Stringmethod_10714(CommandSource source, String string) static booleanmethod_2883(String string, String string2) method_2894(String[] string, String[] string2) static Textmethod_4635(CommandSource source, String[] string, int int2) static Stringmethod_5468(CommandSource source, String string) static Textmethod_8406(CommandSource source, String[] string, int int2, boolean bool) static booleanparseBoolean(String value) static doubleparseClampedDouble(String value, double min) static doubleparseClampedDouble(String value, double min, double max) static intparseClampedInt(String value, int min) static intparseClampedInt(String value, int min, int max) static longparseClampedLong(String value, long min, long max) static doubleparseDouble(double double2, String value, boolean bool) static doubleparseDouble(double double2, String value, int min, int max, boolean bool) static doubleparseDouble(String value) static intstatic longstatic voidrun(CommandSource source, Command command, int permissionLevel, String label, Object[] args) static voidrun(CommandSource source, Command command, String label, Object[] args) static voidsetCommandProvider(CommandProvider provider) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.command.Command
execute, getCommandName, getUsageTranslationKey
-
Field Details
-
commandProvider
- Mappings:
Namespace Name Mixin selector official aLi;a:Lh;intermediary field_3733Lnet/minecraft/class_955;field_3733:Lnet/minecraft/class_928;named commandProviderLnet/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 aLi;a()Iintermediary method_4634Lnet/minecraft/class_955;method_4634()Inamed getPermissionLevelLnet/minecraft/command/AbstractCommand;getPermissionLevel()I
-
getAliases
- Specified by:
getAliasesin interfaceCommand- Mappings:
Namespace Name Mixin selector official bLk;b()Ljava/util/List;intermediary method_3274Lnet/minecraft/class_1007;method_3274()Ljava/util/List;named getAliasesLnet/minecraft/command/Command;getAliases()Ljava/util/List;
-
isAccessible
- Specified by:
isAccessiblein interfaceCommand- Mappings:
Namespace Name Mixin selector official aLk;a(Lm;)Zintermediary method_3278Lnet/minecraft/class_1007;method_3278(Lnet/minecraft/class_1061;)Znamed isAccessibleLnet/minecraft/command/Command;isAccessible(Lnet/minecraft/command/CommandSource;)Z
-
getAutoCompleteHints
- Specified by:
getAutoCompleteHintsin interfaceCommand- Mappings:
Namespace Name Mixin selector official aLk;a(Lm;[Ljava/lang/String;Lcj;)Ljava/util/List;intermediary method_10738Lnet/minecraft/class_1007;method_10738(Lnet/minecraft/class_1061;[Ljava/lang/String;Lnet/minecraft/class_2552;)Ljava/util/List;named getAutoCompleteHintsLnet/minecraft/command/Command;getAutoCompleteHints(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;)Ljava/util/List;
-
parseInt
- Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official aLi;a(Ljava/lang/String;)Iintermediary method_10701Lnet/minecraft/class_955;method_10701(Ljava/lang/String;)Inamed parseIntLnet/minecraft/command/AbstractCommand;parseInt(Ljava/lang/String;)I
-
parseClampedInt
- Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official aLi;a(Ljava/lang/String;I)Iintermediary method_2888Lnet/minecraft/class_955;method_2888(Ljava/lang/String;I)Inamed parseClampedIntLnet/minecraft/command/AbstractCommand;parseClampedInt(Ljava/lang/String;I)I
-
parseClampedInt
- Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official aLi;a(Ljava/lang/String;II)Iintermediary method_2889Lnet/minecraft/class_955;method_2889(Ljava/lang/String;II)Inamed parseClampedIntLnet/minecraft/command/AbstractCommand;parseClampedInt(Ljava/lang/String;II)I
-
parseLong
- Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official bLi;b(Ljava/lang/String;)Jintermediary method_10710Lnet/minecraft/class_955;method_10710(Ljava/lang/String;)Jnamed parseLongLnet/minecraft/command/AbstractCommand;parseLong(Ljava/lang/String;)J
-
parseClampedLong
- Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official aLi;a(Ljava/lang/String;JJ)Jintermediary method_10702Lnet/minecraft/class_955;method_10702(Ljava/lang/String;JJ)Jnamed parseClampedLongLnet/minecraft/command/AbstractCommand;parseClampedLong(Ljava/lang/String;JJ)J
-
getBlockPos
public static BlockPos getBlockPos(CommandSource source, String[] args, int permissionLevel, boolean bool) throws InvalidNumberException - Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official aLi;a(Lm;[Ljava/lang/String;IZ)Lcj;intermediary method_10705Lnet/minecraft/class_955;method_10705(Lnet/minecraft/class_1061;[Ljava/lang/String;IZ)Lnet/minecraft/class_2552;named getBlockPosLnet/minecraft/command/AbstractCommand;getBlockPos(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;IZ)Lnet/minecraft/util/math/BlockPos;
-
parseDouble
- Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official cLi;c(Ljava/lang/String;)Dintermediary method_4637Lnet/minecraft/class_955;method_4637(Ljava/lang/String;)Dnamed parseDoubleLnet/minecraft/command/AbstractCommand;parseDouble(Ljava/lang/String;)D
-
parseClampedDouble
- Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official aLi;a(Ljava/lang/String;D)Dintermediary method_6334Lnet/minecraft/class_955;method_6334(Ljava/lang/String;D)Dnamed parseClampedDoubleLnet/minecraft/command/AbstractCommand;parseClampedDouble(Ljava/lang/String;D)D
-
parseClampedDouble
public static double parseClampedDouble(String value, double min, double max) throws InvalidNumberException - Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official aLi;a(Ljava/lang/String;DD)Dintermediary method_6335Lnet/minecraft/class_955;method_6335(Ljava/lang/String;DD)Dnamed parseClampedDoubleLnet/minecraft/command/AbstractCommand;parseClampedDouble(Ljava/lang/String;DD)D
-
parseBoolean
- Throws:
CommandException- Mappings:
Namespace Name Mixin selector official dLi;d(Ljava/lang/String;)Zintermediary method_6337Lnet/minecraft/class_955;method_6337(Ljava/lang/String;)Znamed parseBooleanLnet/minecraft/command/AbstractCommand;parseBoolean(Ljava/lang/String;)Z
-
getAsPlayer
- Throws:
PlayerNotFoundException- Mappings:
Namespace Name Mixin selector official bLi;b(Lm;)Llf;intermediary method_4638Lnet/minecraft/class_955;method_4638(Lnet/minecraft/class_1061;)Lnet/minecraft/class_798;named getAsPlayerLnet/minecraft/command/AbstractCommand;getAsPlayer(Lnet/minecraft/command/CommandSource;)Lnet/minecraft/entity/player/ServerPlayerEntity;
-
getPlayer
public static ServerPlayerEntity getPlayer(CommandSource source, String name) throws PlayerNotFoundException - Throws:
PlayerNotFoundException- Mappings:
Namespace Name Mixin selector official aLi;a(Lm;Ljava/lang/String;)Llf;intermediary method_4639Lnet/minecraft/class_955;method_4639(Lnet/minecraft/class_1061;Ljava/lang/String;)Lnet/minecraft/class_798;named getPlayerLnet/minecraft/command/AbstractCommand;getPlayer(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)Lnet/minecraft/entity/player/ServerPlayerEntity;
-
getEntity
- Throws:
EntityNotFoundException- Mappings:
Namespace Name Mixin selector official bLi;b(Lm;Ljava/lang/String;)Lpk;intermediary method_10711Lnet/minecraft/class_955;method_10711(Lnet/minecraft/class_1061;Ljava/lang/String;)Lnet/minecraft/class_864;named getEntityLnet/minecraft/command/AbstractCommand;getEntity(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)Lnet/minecraft/entity/Entity;
-
getEntity
public static <T extends Entity> T getEntity(CommandSource source, String uuid, Class<? extends T> entityClass) throws EntityNotFoundException - Throws:
EntityNotFoundException- Mappings:
Namespace Name Mixin selector official aLi;a(Lm;Ljava/lang/String;Ljava/lang/Class;)Lpk;intermediary method_10704Lnet/minecraft/class_955;method_10704(Lnet/minecraft/class_1061;Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/class_864;named getEntityLnet/minecraft/command/AbstractCommand;getEntity(Lnet/minecraft/command/CommandSource;Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/entity/Entity;
-
getEntities
public static List<Entity> getEntities(CommandSource source, String uuid) throws EntityNotFoundException - Throws:
EntityNotFoundException- Mappings:
Namespace Name Mixin selector official cLi;c(Lm;Ljava/lang/String;)Ljava/util/List;intermediary method_10713Lnet/minecraft/class_955;method_10713(Lnet/minecraft/class_1061;Ljava/lang/String;)Ljava/util/List;named getEntitiesLnet/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) throws PlayerNotFoundException - Throws:
PlayerNotFoundException- Mappings:
Namespace Name Mixin selector official dLi;d(Lm;Ljava/lang/String;)Ljava/lang/String;intermediary method_5468Lnet/minecraft/class_955;method_5468(Lnet/minecraft/class_1061;Ljava/lang/String;)Ljava/lang/String;named method_5468Lnet/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) throws EntityNotFoundException - Throws:
EntityNotFoundException- Mappings:
Namespace Name Mixin selector official eLi;e(Lm;Ljava/lang/String;)Ljava/lang/String;intermediary method_10714Lnet/minecraft/class_955;method_10714(Lnet/minecraft/class_1061;Ljava/lang/String;)Ljava/lang/String;named method_10714Lnet/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) throws PlayerNotFoundException - Throws:
PlayerNotFoundException- Mappings:
Namespace Name Mixin selector official aLi;a(Lm;[Ljava/lang/String;I)Leu;intermediary method_4635Lnet/minecraft/class_955;method_4635(Lnet/minecraft/class_1061;[Ljava/lang/String;I)Lnet/minecraft/class_1982;named method_4635Lnet/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) throws PlayerNotFoundException - Throws:
PlayerNotFoundException- Mappings:
Namespace Name Mixin selector official bLi;b(Lm;[Ljava/lang/String;IZ)Leu;intermediary method_8406Lnet/minecraft/class_955;method_8406(Lnet/minecraft/class_1061;[Ljava/lang/String;IZ)Lnet/minecraft/class_1982;named method_8406Lnet/minecraft/command/AbstractCommand;method_8406(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;IZ)Lnet/minecraft/text/Text;
-
method_10706
- Mappings:
Namespace Name Mixin selector official aLi;a([Ljava/lang/String;I)Ljava/lang/String;intermediary method_10706Lnet/minecraft/class_955;method_10706([Ljava/lang/String;I)Ljava/lang/String;named method_10706Lnet/minecraft/command/AbstractCommand;method_10706([Ljava/lang/String;I)Ljava/lang/String;
-
getCoordinate
public static AbstractCommand.Coordinate getCoordinate(double double2, String value, boolean bool) throws InvalidNumberException - Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official aLi;a(DLjava/lang/String;Z)Li$a;intermediary method_10700Lnet/minecraft/class_955;method_10700(DLjava/lang/String;Z)Lnet/minecraft/class_955$class_2588;named getCoordinateLnet/minecraft/command/AbstractCommand;getCoordinate(DLjava/lang/String;Z)Lnet/minecraft/command/AbstractCommand$Coordinate;
-
getCoordinate
public static AbstractCommand.Coordinate getCoordinate(double double2, String value, int min, int max, boolean bool) throws InvalidNumberException - Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official aLi;a(DLjava/lang/String;IIZ)Li$a;intermediary method_10699Lnet/minecraft/class_955;method_10699(DLjava/lang/String;IIZ)Lnet/minecraft/class_955$class_2588;named getCoordinateLnet/minecraft/command/AbstractCommand;getCoordinate(DLjava/lang/String;IIZ)Lnet/minecraft/command/AbstractCommand$Coordinate;
-
parseDouble
public static double parseDouble(double double2, String value, boolean bool) throws InvalidNumberException - Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official bLi;b(DLjava/lang/String;Z)Dintermediary method_10709Lnet/minecraft/class_955;method_10709(DLjava/lang/String;Z)Dnamed parseDoubleLnet/minecraft/command/AbstractCommand;parseDouble(DLjava/lang/String;Z)D
-
parseDouble
public static double parseDouble(double double2, String value, int min, int max, boolean bool) throws InvalidNumberException - Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official bLi;b(DLjava/lang/String;IIZ)Dintermediary method_6333Lnet/minecraft/class_955;method_6333(DLjava/lang/String;IIZ)Dnamed parseDoubleLnet/minecraft/command/AbstractCommand;parseDouble(DLjava/lang/String;IIZ)D
-
getItem
- Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official fLi;f(Lm;Ljava/lang/String;)Lzw;intermediary method_8409Lnet/minecraft/class_955;method_8409(Lnet/minecraft/class_1061;Ljava/lang/String;)Lnet/minecraft/class_1069;named getItemLnet/minecraft/command/AbstractCommand;getItem(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)Lnet/minecraft/item/Item;
-
getBlock
- Throws:
InvalidNumberException- Mappings:
Namespace Name Mixin selector official gLi;g(Lm;Ljava/lang/String;)Lafh;intermediary method_8410Lnet/minecraft/class_955;method_8410(Lnet/minecraft/class_1061;Ljava/lang/String;)Lnet/minecraft/class_197;named getBlockLnet/minecraft/command/AbstractCommand;getBlock(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)Lnet/minecraft/block/Block;
-
concat
- Mappings:
Namespace Name Mixin selector official aLi;a([Ljava/lang/Object;)Ljava/lang/String;intermediary method_2891Lnet/minecraft/class_955;method_2891([Ljava/lang/Object;)Ljava/lang/String;named concatLnet/minecraft/command/AbstractCommand;concat([Ljava/lang/Object;)Ljava/lang/String;
-
concat
- Mappings:
Namespace Name Mixin selector official aLi;a(Ljava/util/List;)Leu;intermediary method_10703Lnet/minecraft/class_955;method_10703(Ljava/util/List;)Lnet/minecraft/class_1982;named concatLnet/minecraft/command/AbstractCommand;concat(Ljava/util/List;)Lnet/minecraft/text/Text;
-
concat
- Mappings:
Namespace Name Mixin selector official aLi;a(Ljava/util/Collection;)Ljava/lang/String;intermediary method_5467Lnet/minecraft/class_955;method_5467(Ljava/util/Collection;)Ljava/lang/String;named concatLnet/minecraft/command/AbstractCommand;concat(Ljava/util/Collection;)Ljava/lang/String;
-
method_10707
- Mappings:
Namespace Name Mixin selector official aLi;a([Ljava/lang/String;ILcj;)Ljava/util/List;intermediary method_10707Lnet/minecraft/class_955;method_10707([Ljava/lang/String;ILnet/minecraft/class_2552;)Ljava/util/List;named method_10707Lnet/minecraft/command/AbstractCommand;method_10707([Ljava/lang/String;ILnet/minecraft/util/math/BlockPos;)Ljava/util/List;
-
method_10712
- Mappings:
Namespace Name Mixin selector official bLi;b([Ljava/lang/String;ILcj;)Ljava/util/List;intermediary method_10712Lnet/minecraft/class_955;method_10712([Ljava/lang/String;ILnet/minecraft/class_2552;)Ljava/util/List;named method_10712Lnet/minecraft/command/AbstractCommand;method_10712([Ljava/lang/String;ILnet/minecraft/util/math/BlockPos;)Ljava/util/List;
-
method_2883
- Mappings:
Namespace Name Mixin selector official aLi;a(Ljava/lang/String;Ljava/lang/String;)Zintermediary method_2883Lnet/minecraft/class_955;method_2883(Ljava/lang/String;Ljava/lang/String;)Znamed method_2883Lnet/minecraft/command/AbstractCommand;method_2883(Ljava/lang/String;Ljava/lang/String;)Z
-
method_2894
- Mappings:
Namespace Name Mixin selector official aLi;a([Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List;intermediary method_2894Lnet/minecraft/class_955;method_2894([Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List;named method_2894Lnet/minecraft/command/AbstractCommand;method_2894([Ljava/lang/String;[Ljava/lang/String;)Ljava/util/List;
-
method_10708
- Mappings:
Namespace Name Mixin selector official aLi;a([Ljava/lang/String;Ljava/util/Collection;)Ljava/util/List;intermediary method_10708Lnet/minecraft/class_955;method_10708([Ljava/lang/String;Ljava/util/Collection;)Ljava/util/List;named method_10708Lnet/minecraft/command/AbstractCommand;method_10708([Ljava/lang/String;Ljava/util/Collection;)Ljava/util/List;
-
isUsernameAtIndex
- Specified by:
isUsernameAtIndexin interfaceCommand- Mappings:
Namespace Name Mixin selector official bLk;b([Ljava/lang/String;I)Zintermediary method_4674Lnet/minecraft/class_1007;method_4674([Ljava/lang/String;I)Znamed isUsernameAtIndexLnet/minecraft/command/Command;isUsernameAtIndex([Ljava/lang/String;I)Z
-
run
- Mappings:
Namespace Name Mixin selector official aLi;a(Lm;Lk;Ljava/lang/String;[Ljava/lang/Object;)Vintermediary method_2890Lnet/minecraft/class_955;method_2890(Lnet/minecraft/class_1061;Lnet/minecraft/class_1007;Ljava/lang/String;[Ljava/lang/Object;)Vnamed runLnet/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 aLi;a(Lm;Lk;ILjava/lang/String;[Ljava/lang/Object;)Vintermediary method_2886Lnet/minecraft/class_955;method_2886(Lnet/minecraft/class_1061;Lnet/minecraft/class_1007;ILjava/lang/String;[Ljava/lang/Object;)Vnamed runLnet/minecraft/command/AbstractCommand;run(Lnet/minecraft/command/CommandSource;Lnet/minecraft/command/Command;ILjava/lang/String;[Ljava/lang/Object;)V
-
setCommandProvider
- Mappings:
Namespace Name Mixin selector official aLi;a(Lh;)Vintermediary method_2884Lnet/minecraft/class_955;method_2884(Lnet/minecraft/class_928;)Vnamed setCommandProviderLnet/minecraft/command/AbstractCommand;setCommandProvider(Lnet/minecraft/command/CommandProvider;)V
-
compareTo
- Specified by:
compareToin interfaceComparable<Command>- Mappings:
Namespace Name Mixin selector official aLi;a(Lk;)Iintermediary method_2885Lnet/minecraft/class_955;method_2885(Lnet/minecraft/class_1007;)Inamed compareToLnet/minecraft/command/AbstractCommand;compareTo(Lnet/minecraft/command/Command;)I
-