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 j
intermediary net/minecraft/class_1581
named net/minecraft/server/command/CommandRegistry
  • Field Details

    • LOGGER

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

      private final Map<String,​Command> commandMap
      Mappings:
      Namespace Name Mixin selector
      official b Lj;b:Ljava/util/Map;
      intermediary field_6466 Lnet/minecraft/class_1581;field_6466:Ljava/util/Map;
      named commandMap Lnet/minecraft/server/command/CommandRegistry;commandMap:Ljava/util/Map;
    • commands

      private final Set<Command> commands
      Mappings:
      Namespace Name Mixin selector
      official c Lj;c:Ljava/util/Set;
      intermediary field_6467 Lnet/minecraft/class_1581;field_6467: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 Ll;a(Lm;Ljava/lang/String;)I
      intermediary method_5984 Lnet/minecraft/class_1629;method_5984(Lnet/minecraft/class_1659;Ljava/lang/String;)I
      named execute Lnet/minecraft/server/command/CommandRegistryProvider;execute(Lnet/minecraft/command/CommandSource;Ljava/lang/String;)I
    • method_5817

      protected boolean method_5817​(CommandSource commandSource, String[] string, Command command, String string2)
      Mappings:
      Namespace Name Mixin selector
      official a Lj;a(Lm;[Ljava/lang/String;Lk;Ljava/lang/String;)Z
      intermediary method_5817 Lnet/minecraft/class_1581;method_5817(Lnet/minecraft/class_1659;[Ljava/lang/String;Lnet/minecraft/class_1606;Ljava/lang/String;)Z
      named method_5817 Lnet/minecraft/server/command/CommandRegistry;method_5817(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 Lj;a(Lk;)Lk;
      intermediary method_5815 Lnet/minecraft/class_1581;method_5815(Lnet/minecraft/class_1606;)Lnet/minecraft/class_1606;
      named registerCommand Lnet/minecraft/server/command/CommandRegistry;registerCommand(Lnet/minecraft/command/Command;)Lnet/minecraft/command/Command;
    • method_5818

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

      public List<String> getCompletions​(CommandSource source, String name, BlockPos pos)
      Specified by:
      getCompletions in interface CommandRegistryProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ll;a(Lm;Ljava/lang/String;Lcj;)Ljava/util/List;
      intermediary method_5985 Lnet/minecraft/class_1629;method_5985(Lnet/minecraft/class_1659;Ljava/lang/String;Lnet/minecraft/class_1372;)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_5983

      public List<Command> method_5983​(CommandSource source)
      Specified by:
      method_5983 in interface CommandRegistryProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ll;a(Lm;)Ljava/util/List;
      intermediary method_5983 Lnet/minecraft/class_1629;method_5983(Lnet/minecraft/class_1659;)Ljava/util/List;
      named method_5983 Lnet/minecraft/server/command/CommandRegistryProvider;method_5983(Lnet/minecraft/command/CommandSource;)Ljava/util/List;
    • getCommandMap

      public Map<String,​Command> getCommandMap()
      Specified by:
      getCommandMap in interface CommandRegistryProvider
      Mappings:
      Namespace Name Mixin selector
      official a Ll;a()Ljava/util/Map;
      intermediary method_5982 Lnet/minecraft/class_1629;method_5982()Ljava/util/Map;
      named getCommandMap Lnet/minecraft/server/command/CommandRegistryProvider;getCommandMap()Ljava/util/Map;
    • method_5816

      private int method_5816​(Command command, String[] args)
      Mappings:
      Namespace Name Mixin selector
      official a Lj;a(Lk;[Ljava/lang/String;)I
      intermediary method_5816 Lnet/minecraft/class_1581;method_5816(Lnet/minecraft/class_1606;[Ljava/lang/String;)I
      named method_5816 Lnet/minecraft/server/command/CommandRegistry;method_5816(Lnet/minecraft/command/Command;[Ljava/lang/String;)I