Package net.minecraft.commands
Class Commands
java.lang.Object
net.minecraft.commands.Commands
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
static int
static int
static int
static int
static int
private static org.apache.logging.log4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSourceStack,T>
createValidator(Commands.ParseFunction p_82121_)
private void
fillUsableCommands(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> p_82113_, com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider> p_82114_, CommandSourceStack p_82115_, Map<com.mojang.brigadier.tree.CommandNode<CommandSourceStack>,com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> p_82116_)
com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
static <S> com.mojang.brigadier.exceptions.CommandSyntaxException
getParseException(com.mojang.brigadier.ParseResults<S> p_82098_)
static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack>
int
performCommand(CommandSourceStack p_82118_, String p_82119_)
void
sendCommands(ServerPlayer p_82096_)
static void
validate()
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
LEVEL_ALL
public static final int LEVEL_ALL- See Also:
- Constant Field Values
-
LEVEL_MODERATORS
public static final int LEVEL_MODERATORS- See Also:
- Constant Field Values
-
LEVEL_GAMEMASTERS
public static final int LEVEL_GAMEMASTERS- See Also:
- Constant Field Values
-
LEVEL_ADMINS
public static final int LEVEL_ADMINS- See Also:
- Constant Field Values
-
LEVEL_OWNERS
public static final int LEVEL_OWNERS- See Also:
- Constant Field Values
-
dispatcher
-
-
Constructor Details
-
Commands
-
-
Method Details
-
performCommand
-
sendCommands
-
fillUsableCommands
private void fillUsableCommands(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> p_82113_, com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider> p_82114_, CommandSourceStack p_82115_, Map<com.mojang.brigadier.tree.CommandNode<CommandSourceStack>,com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> p_82116_) -
literal
public static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> literal(String p_82128_) -
argument
public static <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSourceStack,T> argument(String p_82130_, com.mojang.brigadier.arguments.ArgumentType<T> p_82131_) -
createValidator
-
getDispatcher
-
getParseException
@Nullable public static <S> com.mojang.brigadier.exceptions.CommandSyntaxException getParseException(com.mojang.brigadier.ParseResults<S> p_82098_) -
validate
public static void validate()
-