Class ReplaceItemCommand

java.lang.Object
net.minecraft.command.AbstractCommand
net.minecraft.server.command.ReplaceItemCommand
All Implemented Interfaces:
Comparable<Command>, Command

public class ReplaceItemCommand extends AbstractCommand
Mappings:
Namespace Name
official ax
intermediary net/minecraft/class_2313
named net/minecraft/server/command/ReplaceItemCommand
  • Field Details

    • field_10417

      private static final Map<String,Integer> field_10417
      Mappings:
      Namespace Name Mixin selector
      official a Lax;a:Ljava/util/Map;
      intermediary field_10417 Lnet/minecraft/class_2313;field_10417:Ljava/util/Map;
      named field_10417 Lnet/minecraft/server/command/ReplaceItemCommand;field_10417:Ljava/util/Map;
  • Constructor Details

    • ReplaceItemCommand

      public ReplaceItemCommand()
  • Method Details

    • getCommandName

      public String getCommandName()
      Mappings:
      Namespace Name Mixin selector
      official c Lk;c()Ljava/lang/String;
      intermediary method_3277 Lnet/minecraft/class_1007;method_3277()Ljava/lang/String;
      named getCommandName Lnet/minecraft/command/Command;getCommandName()Ljava/lang/String;
    • getPermissionLevel

      public int getPermissionLevel()
      Overrides:
      getPermissionLevel in class AbstractCommand
      Mappings:
      Namespace Name Mixin selector
      official a Li;a()I
      intermediary method_4634 Lnet/minecraft/class_955;method_4634()I
      named getPermissionLevel Lnet/minecraft/command/AbstractCommand;getPermissionLevel()I
    • getUsageTranslationKey

      public String getUsageTranslationKey(CommandSource source)
      Mappings:
      Namespace Name Mixin selector
      official c Lk;c(Lm;)Ljava/lang/String;
      intermediary method_3275 Lnet/minecraft/class_1007;method_3275(Lnet/minecraft/class_1061;)Ljava/lang/String;
      named getUsageTranslationKey Lnet/minecraft/command/Command;getUsageTranslationKey(Lnet/minecraft/command/CommandSource;)Ljava/lang/String;
    • execute

      public void execute(CommandSource source, String[] args) throws CommandException
      Throws:
      CommandException
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(Lm;[Ljava/lang/String;)V
      intermediary method_3279 Lnet/minecraft/class_1007;method_3279(Lnet/minecraft/class_1061;[Ljava/lang/String;)V
      named execute Lnet/minecraft/command/Command;execute(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;)V
    • method_9549

      private int method_9549(String string) throws CommandException
      Throws:
      CommandException
      Mappings:
      Namespace Name Mixin selector
      official e Lax;e(Ljava/lang/String;)I
      intermediary method_9549 Lnet/minecraft/class_2313;method_9549(Ljava/lang/String;)I
      named method_9549 Lnet/minecraft/server/command/ReplaceItemCommand;method_9549(Ljava/lang/String;)I
    • getAutoCompleteHints

      public List<String> getAutoCompleteHints(CommandSource source, String[] args, BlockPos pos)
      Specified by:
      getAutoCompleteHints in interface Command
      Overrides:
      getAutoCompleteHints in class AbstractCommand
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(Lm;[Ljava/lang/String;Lcj;)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;
    • method_9548

      protected String[] method_9548()
      Mappings:
      Namespace Name Mixin selector
      official d Lax;d()[Ljava/lang/String;
      intermediary method_9548 Lnet/minecraft/class_2313;method_9548()[Ljava/lang/String;
      named method_9548 Lnet/minecraft/server/command/ReplaceItemCommand;method_9548()[Ljava/lang/String;
    • isUsernameAtIndex

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