Class CommandManager

java.lang.Object
net.minecraft.server.command.CommandManager

public class CommandManager extends Object
Mappings:
Namespace Name
official dm
intermediary net/minecraft/class_2170
named net/minecraft/server/command/CommandManager
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official f Ldm;f:Lorg/apache/logging/log4j/Logger;
      intermediary field_9833 Lnet/minecraft/class_2170;field_9833:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/server/command/CommandManager;LOGGER:Lorg/apache/logging/log4j/Logger;
    • field_31837

      public static final int field_31837
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Ldm;a:I
      intermediary field_31837 Lnet/minecraft/class_2170;field_31837:I
      named field_31837 Lnet/minecraft/server/command/CommandManager;field_31837:I
    • field_31838

      public static final int field_31838
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official b Ldm;b:I
      intermediary field_31838 Lnet/minecraft/class_2170;field_31838:I
      named field_31838 Lnet/minecraft/server/command/CommandManager;field_31838:I
    • field_31839

      public static final int field_31839
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official c Ldm;c:I
      intermediary field_31839 Lnet/minecraft/class_2170;field_31839:I
      named field_31839 Lnet/minecraft/server/command/CommandManager;field_31839:I
    • field_31840

      public static final int field_31840
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official d Ldm;d:I
      intermediary field_31840 Lnet/minecraft/class_2170;field_31840:I
      named field_31840 Lnet/minecraft/server/command/CommandManager;field_31840:I
    • field_31841

      public static final int field_31841
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official e Ldm;e:I
      intermediary field_31841 Lnet/minecraft/class_2170;field_31841:I
      named field_31841 Lnet/minecraft/server/command/CommandManager;field_31841:I
    • dispatcher

      private final com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher
      Mappings:
      Namespace Name Mixin selector
      official g Ldm;g:Lcom/mojang/brigadier/CommandDispatcher;
      intermediary field_9832 Lnet/minecraft/class_2170;field_9832:Lcom/mojang/brigadier/CommandDispatcher;
      named dispatcher Lnet/minecraft/server/command/CommandManager;dispatcher:Lcom/mojang/brigadier/CommandDispatcher;
  • Constructor Details

    • CommandManager

      public CommandManager(CommandManager.RegistrationEnvironment environment)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldm;<init>(Ldm$a;)V
      intermediary <init> Lnet/minecraft/class_2170;<init>(Lnet/minecraft/class_2170$class_5364;)V
      named <init> Lnet/minecraft/server/command/CommandManager;<init>(Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;)V
  • Method Details

    • execute

      public int execute(ServerCommandSource commandSource, String command)
      Mappings:
      Namespace Name Mixin selector
      official a Ldm;a(Ldl;Ljava/lang/String;)I
      intermediary method_9249 Lnet/minecraft/class_2170;method_9249(Lnet/minecraft/class_2168;Ljava/lang/String;)I
      named execute Lnet/minecraft/server/command/CommandManager;execute(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)I
    • sendCommandTree

      public void sendCommandTree(ServerPlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Ldm;a(Labs;)V
      intermediary method_9241 Lnet/minecraft/class_2170;method_9241(Lnet/minecraft/class_3222;)V
      named sendCommandTree Lnet/minecraft/server/command/CommandManager;sendCommandTree(Lnet/minecraft/server/network/ServerPlayerEntity;)V
    • makeTreeForSource

      private void makeTreeForSource(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> tree, com.mojang.brigadier.tree.CommandNode<CommandSource> result, ServerCommandSource source, Map<com.mojang.brigadier.tree.CommandNode<ServerCommandSource>,​com.mojang.brigadier.tree.CommandNode<CommandSource>> resultNodes)
      Mappings:
      Namespace Name Mixin selector
      official a Ldm;a(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/tree/CommandNode;Ldl;Ljava/util/Map;)V
      intermediary method_9239 Lnet/minecraft/class_2170;method_9239(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/tree/CommandNode;Lnet/minecraft/class_2168;Ljava/util/Map;)V
      named makeTreeForSource Lnet/minecraft/server/command/CommandManager;makeTreeForSource(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/tree/CommandNode;Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Map;)V
    • literal

      public static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> literal(String literal)
      Mappings:
      Namespace Name Mixin selector
      official a Ldm;a(Ljava/lang/String;)Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;
      intermediary method_9247 Lnet/minecraft/class_2170;method_9247(Ljava/lang/String;)Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;
      named literal Lnet/minecraft/server/command/CommandManager;literal(Ljava/lang/String;)Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;
    • argument

      public static <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<ServerCommandSource,​T> argument(String name, com.mojang.brigadier.arguments.ArgumentType<T> type)
      Mappings:
      Namespace Name Mixin selector
      official a Ldm;a(Ljava/lang/String;Lcom/mojang/brigadier/arguments/ArgumentType;)Lcom/mojang/brigadier/builder/RequiredArgumentBuilder;
      intermediary method_9244 Lnet/minecraft/class_2170;method_9244(Ljava/lang/String;Lcom/mojang/brigadier/arguments/ArgumentType;)Lcom/mojang/brigadier/builder/RequiredArgumentBuilder;
      named argument Lnet/minecraft/server/command/CommandManager;argument(Ljava/lang/String;Lcom/mojang/brigadier/arguments/ArgumentType;)Lcom/mojang/brigadier/builder/RequiredArgumentBuilder;
    • getCommandValidator

      public static Predicate<String> getCommandValidator(CommandManager.CommandParser parser)
      Mappings:
      Namespace Name Mixin selector
      official a Ldm;a(Ldm$b;)Ljava/util/function/Predicate;
      intermediary method_9238 Lnet/minecraft/class_2170;method_9238(Lnet/minecraft/class_2170$class_2171;)Ljava/util/function/Predicate;
      named getCommandValidator Lnet/minecraft/server/command/CommandManager;getCommandValidator(Lnet/minecraft/server/command/CommandManager$CommandParser;)Ljava/util/function/Predicate;
    • getDispatcher

      public com.mojang.brigadier.CommandDispatcher<ServerCommandSource> getDispatcher()
      Mappings:
      Namespace Name Mixin selector
      official a Ldm;a()Lcom/mojang/brigadier/CommandDispatcher;
      intermediary method_9235 Lnet/minecraft/class_2170;method_9235()Lcom/mojang/brigadier/CommandDispatcher;
      named getDispatcher Lnet/minecraft/server/command/CommandManager;getDispatcher()Lcom/mojang/brigadier/CommandDispatcher;
    • getException

      @Nullable public static <S> @Nullable com.mojang.brigadier.exceptions.CommandSyntaxException getException(com.mojang.brigadier.ParseResults<S> parse)
      Mappings:
      Namespace Name Mixin selector
      official a Ldm;a(Lcom/mojang/brigadier/ParseResults;)Lcom/mojang/brigadier/exceptions/CommandSyntaxException;
      intermediary method_23917 Lnet/minecraft/class_2170;method_23917(Lcom/mojang/brigadier/ParseResults;)Lcom/mojang/brigadier/exceptions/CommandSyntaxException;
      named getException Lnet/minecraft/server/command/CommandManager;getException(Lcom/mojang/brigadier/ParseResults;)Lcom/mojang/brigadier/exceptions/CommandSyntaxException;
    • checkMissing

      public static void checkMissing()
      Mappings:
      Namespace Name Mixin selector
      official b Ldm;b()V
      intermediary method_30852 Lnet/minecraft/class_2170;method_30852()V
      named checkMissing Lnet/minecraft/server/command/CommandManager;checkMissing()V