net.minecraft.commands

public class Commands

dt
net.minecraft.commands.Commands
net.minecraft.class_2170
net.minecraft.server.command.CommandManager
net.minecraft.src.C_3027_
net.minecraft.commands.CommandDispatcher

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
f
LOGGER
field_9833
LOGGER
f_82089_
public static final int
a
LEVEL_ALL
field_31837
field_31837
f_165682_
public static final int
b
LEVEL_MODERATORS
field_31838
field_31838
f_165683_
public static final int
c
LEVEL_GAMEMASTERS
field_31839
field_31839
f_165684_
public static final int
d
LEVEL_ADMINS
field_31840
field_31840
f_165685_
public static final int
e
LEVEL_OWNERS
field_31841
field_31841
f_165686_
private final com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
g
dispatcher
field_9832
dispatcher
f_82090_

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)
m_242611_(com.mojang.brigadier.ParseResults<S> p_242928_, UnaryOperator<S> p_242890_)
public int
a(ds arg0, String arg1)
performPrefixedCommand(CommandSourceStack arg0, String arg1)
method_44252(class_2168 arg0, String arg1)
executeWithPrefix(ServerCommandSource source, String command)
m_230957_(C_2969_ p_230959_, String arg1)
public int
a(com.mojang.brigadier.ParseResults<ds> 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)
m_242674_(com.mojang.brigadier.ParseResults<C_2969_> p_242841_, String arg1)
public void
a(aig arg0)
sendCommands(ServerPlayer arg0)
method_9241(class_3222 arg0)
sendCommandTree(ServerPlayerEntity player)
m_82095_(C_13_ arg0)
private void
a(com.mojang.brigadier.tree.CommandNode<ds> arg0, com.mojang.brigadier.tree.CommandNode<du> arg1, ds arg2, Map<com.mojang.brigadier.tree.CommandNode<ds>, com.mojang.brigadier.tree.CommandNode<du>> 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)
m_82112_(com.mojang.brigadier.tree.CommandNode<C_2969_> p_82114_, com.mojang.brigadier.tree.CommandNode<C_3063_> p_82115_, C_2969_ p_82116_, Map<com.mojang.brigadier.tree.CommandNode<C_2969_>, com.mojang.brigadier.tree.CommandNode<C_3063_>> arg3)
public static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack>
a(String arg0)
literal(String arg0)
method_9247(String arg0)
literal(String literal)
m_82127_(String p_82128_)
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)
m_82129_(String p_82130_, com.mojang.brigadier.arguments.ArgumentType<T> p_82131_)
public static Predicate<String>
a(dt$b arg0)
createValidator(Commands$ParseFunction arg0)
method_9238(class_2170$class_2171 arg0)
getCommandValidator(CommandManager$CommandParser parser)
m_82120_(C_3027_$C_3029_ p_82121_)
public com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
a()
getDispatcher()
method_9235()
getDispatcher()
m_82094_()
public static <S> com.mojang.brigadier.exceptions.CommandSyntaxException
a(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)
m_82097_(com.mojang.brigadier.ParseResults<S> p_82098_)
public static CommandBuildContext
a(hg$b arg0)
createValidationContext(HolderLookup$Provider arg0)
method_46732(class_7225$class_7874 arg0)
createRegistryAccess(RegistryWrapper$WrapperLookup registryLookup)
m_255082_(C_213466_$C_254607_ p_256243_)
public static void
b()
validate()
method_30852()
checkMissing()
m_82138_()