net.minecraft.commands

public class Commands

ex
net.minecraft.commands.Commands
net.minecraft.class_2170
net.minecraft.server.command.CommandManager
net.minecraft.commands.CommandDispatcher

Field summary

Modifier and TypeField
private static final ThreadLocal<ExecutionContext<CommandSourceStack>>
f
CURRENT_EXECUTION_CONTEXT
field_46823
CURRENT_CONTEXT
private static final org.slf4j.Logger
g
LOGGER
field_9833
LOGGER
public static final int
a
LEVEL_ALL
field_31837
field_31837
public static final int
b
LEVEL_MODERATORS
field_31838
field_31838
public static final int
c
LEVEL_GAMEMASTERS
field_31839
field_31839
public static final int
d
LEVEL_ADMINS
field_31840
field_31840
public static final int
e
LEVEL_OWNERS
field_31841
field_31841
private final com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
h
dispatcher
field_9832
dispatcher

Constructor summary

ModifierConstructor
public (Commands$CommandSelection environment, CommandBuildContext commandRegistryAccess)

Method summary

Modifier and TypeMethod
public static <S> com.mojang.brigadier.ParseResults<S>
a(com.mojang.brigadier.ParseResults<S> arg0, UnaryOperator<S> arg1)
mapSource(com.mojang.brigadier.ParseResults<S> arg0, UnaryOperator<S> arg1)
method_45018(com.mojang.brigadier.ParseResults<S> arg0, UnaryOperator<S> arg1)
withCommandSource(com.mojang.brigadier.ParseResults<S> parseResults, UnaryOperator<S> sourceMapper)
public void
a(ew arg0, String arg1)
performPrefixedCommand(CommandSourceStack arg0, String arg1)
method_44252(class_2168 arg0, String arg1)
executeWithPrefix(ServerCommandSource source, String command)
public void
a(com.mojang.brigadier.ParseResults<ew> arg0, String arg1)
performCommand(com.mojang.brigadier.ParseResults<CommandSourceStack> arg0, String arg1)
method_9249(com.mojang.brigadier.ParseResults<class_2168> arg0, String arg1)
execute(com.mojang.brigadier.ParseResults<ServerCommandSource> parseResults, String command)
private static com.mojang.brigadier.context.ContextChain<CommandSourceStack>
a(com.mojang.brigadier.ParseResults<ew> arg0, String arg1, ew arg2)
finishParsing(com.mojang.brigadier.ParseResults<CommandSourceStack> arg0, String arg1, CommandSourceStack arg2)
method_54492(com.mojang.brigadier.ParseResults<class_2168> arg0, String arg1, class_2168 arg2)
checkCommand(com.mojang.brigadier.ParseResults<ServerCommandSource> parseResults, String command, ServerCommandSource source)
public static void
a(ew arg0, Consumer<hw<ew>> arg1)
executeCommandInContext(CommandSourceStack arg0, Consumer<ExecutionContext<CommandSourceStack>> arg1)
method_54313(class_2168 arg0, Consumer<class_8854<class_2168>> arg1)
callWithContext(ServerCommandSource commandSource, Consumer<CommandExecutionContext<ServerCommandSource>> callback)
public void
a(asi arg0)
sendCommands(ServerPlayer arg0)
method_9241(class_3222 arg0)
sendCommandTree(ServerPlayerEntity player)
private void
a(com.mojang.brigadier.tree.CommandNode<ew> arg0, com.mojang.brigadier.tree.CommandNode<fb> arg1, ew arg2, Map<com.mojang.brigadier.tree.CommandNode<ew>, com.mojang.brigadier.tree.CommandNode<fb>> arg3)
fillUsableCommands(com.mojang.brigadier.tree.CommandNode<CommandSourceStack> arg0, com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider> arg1, CommandSourceStack arg2, Map<com.mojang.brigadier.tree.CommandNode<CommandSourceStack>, com.mojang.brigadier.tree.CommandNode<SharedSuggestionProvider>> arg3)
method_9239(com.mojang.brigadier.tree.CommandNode<class_2168> arg0, com.mojang.brigadier.tree.CommandNode<class_2172> arg1, class_2168 arg2, Map<com.mojang.brigadier.tree.CommandNode<class_2168>, com.mojang.brigadier.tree.CommandNode<class_2172>> arg3)
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)
public static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack>
a(String arg0)
literal(String arg0)
method_9247(String arg0)
literal(String literal)
public static <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<CommandSourceStack, T>
a(String arg0, com.mojang.brigadier.arguments.ArgumentType<T> arg1)
argument(String arg0, com.mojang.brigadier.arguments.ArgumentType<T> arg1)
method_9244(String arg0, com.mojang.brigadier.arguments.ArgumentType<T> arg1)
argument(String name, com.mojang.brigadier.arguments.ArgumentType<T> type)
public static Predicate<String>
a(ex$b arg0)
createValidator(Commands$ParseFunction arg0)
method_9238(class_2170$class_2171 arg0)
getCommandValidator(CommandManager$CommandParser parser)
public com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
a()
getDispatcher()
method_9235()
getDispatcher()
public static <S> void
a(com.mojang.brigadier.ParseResults<S> arg0)
validateParseResults(com.mojang.brigadier.ParseResults<S> arg0)
method_54312(com.mojang.brigadier.ParseResults<S> arg0)
throwException(com.mojang.brigadier.ParseResults<S> parse)
public static <S> com.mojang.brigadier.exceptions.CommandSyntaxException
b(com.mojang.brigadier.ParseResults<S> arg0)
getParseException(com.mojang.brigadier.ParseResults<S> arg0)
method_23917(com.mojang.brigadier.ParseResults<S> arg0)
getException(com.mojang.brigadier.ParseResults<S> parse)
public static CommandBuildContext
a(js$a arg0)
createValidationContext(HolderLookup$Provider arg0)
method_46732(class_7225$class_7874 arg0)
createRegistryAccess(RegistryWrapper$WrapperLookup registries)
public static void
b()
validate()
method_30852()
checkMissing()