Package net.minecraft.command
Class Commands
- java.lang.Object
-
- net.minecraft.command.Commands
-
public class Commands extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Commands.EnvironmentType
static interface
Commands.IParser
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.brigadier.CommandDispatcher<CommandSource>
dispatcher
private static org.apache.logging.log4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description Commands(Commands.EnvironmentType p_i232148_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSource,T>
argument(java.lang.String p_197056_0_, com.mojang.brigadier.arguments.ArgumentType<T> p_197056_1_)
static java.util.function.Predicate<java.lang.String>
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_, java.util.Map<com.mojang.brigadier.tree.CommandNode<CommandSource>,com.mojang.brigadier.tree.CommandNode<ISuggestionProvider>> p_197052_4_)
com.mojang.brigadier.CommandDispatcher<CommandSource>
getDispatcher()
static <S> com.mojang.brigadier.exceptions.CommandSyntaxException
getParseException(com.mojang.brigadier.ParseResults<S> p_227481_0_)
static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSource>
literal(java.lang.String p_197057_0_)
int
performCommand(CommandSource p_197059_1_, java.lang.String p_197059_2_)
void
sendCommands(ServerPlayerEntity p_197051_1_)
static void
validate()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
dispatcher
private final com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher
-
-
Constructor Detail
-
Commands
public Commands(Commands.EnvironmentType p_i232148_1_)
-
-
Method Detail
-
performCommand
public int performCommand(CommandSource p_197059_1_, java.lang.String p_197059_2_)
-
sendCommands
public void sendCommands(ServerPlayerEntity p_197051_1_)
-
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_, java.util.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(java.lang.String p_197057_0_)
-
argument
public static <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSource,T> argument(java.lang.String p_197056_0_, com.mojang.brigadier.arguments.ArgumentType<T> p_197056_1_)
-
createValidator
public static java.util.function.Predicate<java.lang.String> createValidator(Commands.IParser p_212590_0_)
-
getDispatcher
public com.mojang.brigadier.CommandDispatcher<CommandSource> 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()
-
-