Package net.minecraft.server.command
Class CommandManager
java.lang.Object
net.minecraft.server.command.CommandManager
public class CommandManager extends Object
- Mappings:
Namespace Name official dc
intermediary net/minecraft/class_2170
named net/minecraft/server/command/CommandManager
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CommandManager.CommandParser
static class
CommandManager.RegistrationEnvironment
Describes the environment in which commands are registered. -
Field Summary
Fields Modifier and Type Field Description private com.mojang.brigadier.CommandDispatcher<ServerCommandSource>
dispatcher
private static Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description CommandManager(CommandManager.RegistrationEnvironment environment)
-
Method Summary
Modifier and Type Method Description static <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<ServerCommandSource,T>
argument(String name, com.mojang.brigadier.arguments.ArgumentType<T> type)
static void
checkMissing()
int
execute(ServerCommandSource commandSource, String command)
static Predicate<String>
getCommandValidator(CommandManager.CommandParser parser)
com.mojang.brigadier.CommandDispatcher<ServerCommandSource>
getDispatcher()
static <S> com.mojang.brigadier.exceptions.CommandSyntaxException
getException(com.mojang.brigadier.ParseResults<S> parse)
static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource>
literal(String literal)
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)
void
sendCommandTree(ServerPlayerEntity player)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Ldc;a: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;
-
dispatcher
- Mappings:
Namespace Name Mixin selector official b
Ldc;b: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
- Mappings:
Namespace Name Mixin selector official <init>
Ldc;<init>(Ldc$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
- Mappings:
Namespace Name Mixin selector official a
Ldc;a(Ldb;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
- Mappings:
Namespace Name Mixin selector official a
Ldc;a(Laaw;)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
Ldc;a(Lcom/mojang/brigadier/tree/CommandNode;Lcom/mojang/brigadier/tree/CommandNode;Ldb;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
Ldc;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
Ldc;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
- Mappings:
Namespace Name Mixin selector official a
Ldc;a(Ldc$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
- Mappings:
Namespace Name Mixin selector official a
Ldc;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> com.mojang.brigadier.exceptions.CommandSyntaxException getException(com.mojang.brigadier.ParseResults<S> parse)- Mappings:
Namespace Name Mixin selector official a
Ldc;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
Ldc;b()V
intermediary method_30852
Lnet/minecraft/class_2170;method_30852()V
named checkMissing
Lnet/minecraft/server/command/CommandManager;checkMissing()V
-