Class CommandRegistry

java.lang.Object
net.minecraft.server.command.CommandRegistry
All Implemented Interfaces:
CommandRegistryProvider
Direct Known Subclasses:
CommandManager

public class CommandRegistry extends Object implements CommandRegistryProvider
Mappings:
Namespace Name
official ab
intermediary net/minecraft/class_981
named net/minecraft/server/command/CommandRegistry
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lab;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_9133 Lnet/minecraft/class_981;field_9133:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/server/command/CommandRegistry;LOGGER:Lorg/apache/logging/log4j/Logger;
    • commandMap

      private final Map commandMap
      Mappings:
      Namespace Name Mixin selector
      official b Lab;b:Ljava/util/Map;
      intermediary field_3940 Lnet/minecraft/class_981;field_3940:Ljava/util/Map;
      named commandMap Lnet/minecraft/server/command/CommandRegistry;commandMap:Ljava/util/Map;
    • commands

      private final Set commands
      Mappings:
      Namespace Name Mixin selector
      official c Lab;c:Ljava/util/Set;
      intermediary field_3941 Lnet/minecraft/class_981;field_3941:Ljava/util/Set;
      named commands Lnet/minecraft/server/command/CommandRegistry;commands:Ljava/util/Set;
  • Constructor Details

    • CommandRegistry

      public CommandRegistry()
  • Method Details

    • execute

      public int execute(CommandSource source, String name)
      Specified by:
      execute in interface CommandRegistryProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lad;a(Lae;Ljava/lang/String;)I
      intermediary method_3310 Lnet/minecraft/class_1034;method_3310(Lnet/minecraft/class_1061;Ljava/lang/String;)I
      named execute Lnet/minecraft/server/command/CommandRegistryProvider;execute(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)I
    • method_10732

      protected boolean method_10732(CommandSource commandSource, String[] string, Command command, String string2)
      Mappings:
      Namespace Name Mixin selector
      official a Lab;a(Lae;[Ljava/lang/String;Lac;Ljava/lang/String;)Z
      intermediary method_10732 Lnet/minecraft/class_981;method_10732(Lnet/minecraft/class_1061;[Ljava/lang/String;Lnet/minecraft/class_1007;Ljava/lang/String;)Z
      named method_10732 Lnet/minecraft/server/command/CommandRegistry;method_10732(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;Lnet/minecraft/command/Command;Ljava/lang/String;)Z
    • registerCommand

      public Command registerCommand(Command command)
      Mappings:
      Namespace Name Mixin selector
      official a Lab;a(Lac;)Lac;
      intermediary method_3103 Lnet/minecraft/class_981;method_3103(Lnet/minecraft/class_1007;)Lnet/minecraft/class_1007;
      named registerCommand Lnet/minecraft/server/command/CommandRegistry;registerCommand(Lnet/minecraft/command/Command;)Lnet/minecraft/command/Command;
    • method_3104

      private static String[] method_3104(String[] string)
      Mappings:
      Namespace Name Mixin selector
      official a Lab;a([Ljava/lang/String;)[Ljava/lang/String;
      intermediary method_3104 Lnet/minecraft/class_981;method_3104([Ljava/lang/String;)[Ljava/lang/String;
      named method_3104 Lnet/minecraft/server/command/CommandRegistry;method_3104([Ljava/lang/String;)[Ljava/lang/String;
    • getCompletions

      public List getCompletions(CommandSource source, String name, BlockPos pos)
      Specified by:
      getCompletions in interface CommandRegistryProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lad;a(Lae;Ljava/lang/String;Ldt;)Ljava/util/List;
      intermediary method_10746 Lnet/minecraft/class_1034;method_10746(Lnet/minecraft/class_1061;Ljava/lang/String;Lnet/minecraft/class_2552;)Ljava/util/List;
      named getCompletions Lnet/minecraft/server/command/CommandRegistryProvider;getCompletions(Lnet/minecraft/command/CommandSource;Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;)Ljava/util/List;
    • method_3309

      public List method_3309(CommandSource source)
      Specified by:
      method_3309 in interface CommandRegistryProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lad;a(Lae;)Ljava/util/List;
      intermediary method_3309 Lnet/minecraft/class_1034;method_3309(Lnet/minecraft/class_1061;)Ljava/util/List;
      named method_3309 Lnet/minecraft/server/command/CommandRegistryProvider;method_3309(Lnet/minecraft/command/CommandSource;)Ljava/util/List;
    • getCommandMap

      public Map getCommandMap()
      Specified by:
      getCommandMap in interface CommandRegistryProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lad;a()Ljava/util/Map;
      intermediary method_3308 Lnet/minecraft/class_1034;method_3308()Ljava/util/Map;
      named getCommandMap Lnet/minecraft/server/command/CommandRegistryProvider;getCommandMap()Ljava/util/Map;
    • method_4642

      private int method_4642(Command command, String[] args)
      Mappings:
      Namespace Name Mixin selector
      official a Lab;a(Lac;[Ljava/lang/String;)I
      intermediary method_4642 Lnet/minecraft/class_981;method_4642(Lnet/minecraft/class_1007;[Ljava/lang/String;)I
      named method_4642 Lnet/minecraft/server/command/CommandRegistry;method_4642(Lnet/minecraft/command/Command;[Ljava/lang/String;)I