Class CommandManager

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

public class CommandManager extends Object
Mappings:
Namespace Name
official dt
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 Ldt;f:Lorg/slf4j/Logger;
      intermediary field_9833 Lnet/minecraft/class_2170;field_9833:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/server/command/CommandManager;LOGGER:Lorg/slf4j/Logger;
    • field_31837

      public static final int field_31837
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldt;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:
      Mappings:
      Namespace Name Mixin selector
      official b Ldt;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:
      Mappings:
      Namespace Name Mixin selector
      official c Ldt;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:
      Mappings:
      Namespace Name Mixin selector
      official d Ldt;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:
      Mappings:
      Namespace Name Mixin selector
      official e Ldt;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 Ldt;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, CommandRegistryAccess commandRegistryAccess)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldt;<init>(Ldt$a;Ldm;)V
      intermediary <init> Lnet/minecraft/class_2170;<init>(Lnet/minecraft/class_2170$class_5364;Lnet/minecraft/class_7157;)V
      named <init> Lnet/minecraft/server/command/CommandManager;<init>(Lnet/minecraft/server/command/CommandManager$RegistrationEnvironment;Lnet/minecraft/command/CommandRegistryAccess;)V
  • Method Details

    • withCommandSource

      public static <S> com.mojang.brigadier.ParseResults<S> withCommandSource(com.mojang.brigadier.ParseResults<S> parseResults, UnaryOperator<S> sourceMapper)
      Returns parseResults with sourceMapper applied to the command source.
      Returns:
      parseResults with sourceMapper applied to the command source
      Mappings:
      Namespace Name Mixin selector
      official a Ldt;a(Lcom/mojang/brigadier/ParseResults;Ljava/util/function/UnaryOperator;)Lcom/mojang/brigadier/ParseResults;
      intermediary method_45018 Lnet/minecraft/class_2170;method_45018(Lcom/mojang/brigadier/ParseResults;Ljava/util/function/UnaryOperator;)Lcom/mojang/brigadier/ParseResults;
      named withCommandSource Lnet/minecraft/server/command/CommandManager;withCommandSource(Lcom/mojang/brigadier/ParseResults;Ljava/util/function/UnaryOperator;)Lcom/mojang/brigadier/ParseResults;
    • executeWithPrefix

      public int executeWithPrefix(ServerCommandSource source, String command)
      Mappings:
      Namespace Name Mixin selector
      official a Ldt;a(Lds;Ljava/lang/String;)I
      intermediary method_44252 Lnet/minecraft/class_2170;method_44252(Lnet/minecraft/class_2168;Ljava/lang/String;)I
      named executeWithPrefix Lnet/minecraft/server/command/CommandManager;executeWithPrefix(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;)I
    • execute

      public int execute(com.mojang.brigadier.ParseResults<ServerCommandSource> parseResults, String command)
      Executes command. The command cannot be prefixed with a slash.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldt;a(Lcom/mojang/brigadier/ParseResults;Ljava/lang/String;)I
      intermediary method_9249 Lnet/minecraft/class_2170;method_9249(Lcom/mojang/brigadier/ParseResults;Ljava/lang/String;)I
      named execute Lnet/minecraft/server/command/CommandManager;execute(Lcom/mojang/brigadier/ParseResults;Ljava/lang/String;)I
    • sendCommandTree

      public void sendCommandTree(ServerPlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Ldt;a(Laig;)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 Ldt;a(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/tree/CommandNode;Lds;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 Ldt;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 Ldt;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 Ldt;a(Ldt$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 Ldt;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 Ldt;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;
    • createRegistryAccess

      public static CommandRegistryAccess createRegistryAccess(RegistryWrapper.WrapperLookup registryLookup)
      Mappings:
      Namespace Name Mixin selector
      official a Ldt;a(Lhg$b;)Ldm;
      intermediary method_46732 Lnet/minecraft/class_2170;method_46732(Lnet/minecraft/class_7225$class_7874;)Lnet/minecraft/class_7157;
      named createRegistryAccess Lnet/minecraft/server/command/CommandManager;createRegistryAccess(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Lnet/minecraft/command/CommandRegistryAccess;
    • checkMissing

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