Package net.minecraft.command
Class Commands
java.lang.Object
net.minecraft.command.Commands
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.mojang.brigadier.CommandDispatcher<CommandSource>
private static final org.apache.logging.log4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSource,
T> createValidator
(Commands.IParser p_212590_0_) private void
fillUsableCommands
(com.mojang.brigadier.tree.CommandNode<CommandSource> p_197052_1_, com.mojang.brigadier.tree.CommandNode<ISuggestionProvider> p_197052_2_, CommandSource p_197052_3_, Map<com.mojang.brigadier.tree.CommandNode<CommandSource>, com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>> p_197052_4_) com.mojang.brigadier.CommandDispatcher<CommandSource>
static <S> com.mojang.brigadier.exceptions.CommandSyntaxException
getParseException
(com.mojang.brigadier.ParseResults<S> p_227481_0_) static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource>
int
performCommand
(CommandSource p_197059_1_, String p_197059_2_) void
sendCommands
(ServerPlayerEntity p_197051_1_) static void
validate()
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
dispatcher
-
-
Constructor Details
-
Commands
-
-
Method Details
-
performCommand
-
sendCommands
-
fillUsableCommands
private void fillUsableCommands(com.mojang.brigadier.tree.CommandNode<CommandSource> p_197052_1_, com.mojang.brigadier.tree.CommandNode<ISuggestionProvider> p_197052_2_, CommandSource p_197052_3_, Map<com.mojang.brigadier.tree.CommandNode<CommandSource>, com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>> p_197052_4_) -
literal
public static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource> literal(String p_197057_0_) -
argument
public static <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSource,T> argument(String p_197056_0_, com.mojang.brigadier.arguments.ArgumentType<T> p_197056_1_) -
createValidator
-
getDispatcher
-
getParseException
@Nullable public static <S> com.mojang.brigadier.exceptions.CommandSyntaxException getParseException(com.mojang.brigadier.ParseResults<S> p_227481_0_) -
validate
public static void validate()
-