net.minecraft.commands

public class Commands

eu
net.minecraft.commands.Commands
net.minecraft.class_2170
net.minecraft.unmapped.C_rieemtgi
net.minecraft.server.command.CommandManager
net.minecraft.server.command.CommandManager
net.minecraft.src.C_3027_
net.minecraft.commands.CommandDispatcher

Field summary

Modifier and TypeField
private static final ThreadLocal<ExecutionContext<CommandSourceStack>>
f
CURRENT_EXECUTION_CONTEXT
field_46823
f_eaioeejo
CURRENT_CONTEXT
f_303274_
private static final org.slf4j.Logger
g
LOGGER
field_9833
f_sqvnobwc
LOGGER
LOGGER
f_82089_
public static final int
a
LEVEL_ALL
field_31837
f_knvoaxam
field_31837
EVERYONE_PERMISSION_LEVEL
f_165682_
public static final int
b
LEVEL_MODERATORS
field_31838
f_xkkjmpve
field_31838
MODERATOR_PERMISSION_LEVEL
f_165683_
public static final int
c
LEVEL_GAMEMASTERS
field_31839
f_bqubnypx
field_31839
GAME_MASTER_PERMISSION_LEVEL
f_165684_
public static final int
d
LEVEL_ADMINS
field_31840
f_nocdhpuj
field_31840
ADMIN_PERMISSION_LEVEL
f_165685_
public static final int
e
LEVEL_OWNERS
field_31841
f_bskcvqdp
field_31841
OWNER_PERMISSION_LEVEL
f_165686_
private final com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
h
dispatcher
field_9832
f_mqtozcox
dispatcher
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)
m_maovrlpm(com.mojang.brigadier.ParseResults<S> arg0, UnaryOperator<S> arg1)
withCommandSource(com.mojang.brigadier.ParseResults<S> parseResults, UnaryOperator<S> sourceMapper)
m_maovrlpm(com.mojang.brigadier.ParseResults<S> results, UnaryOperator<S> operator)
m_242611_(com.mojang.brigadier.ParseResults<S> p_242928_, UnaryOperator<S> p_242890_)
public void
a(et arg0, String arg1)
performPrefixedCommand(CommandSourceStack arg0, String arg1)
method_44252(class_2168 arg0, String arg1)
m_altnxptb(C_pennblrk arg0, String arg1)
executeWithPrefix(ServerCommandSource source, String command)
executePrefixedCommand(ServerCommandSource source, String command)
m_230957_(C_2969_ p_230959_, String arg1)
public void
a(com.mojang.brigadier.ParseResults<et> arg0, String arg1)
performCommand(com.mojang.brigadier.ParseResults<CommandSourceStack> arg0, String arg1)
method_9249(com.mojang.brigadier.ParseResults<class_2168> arg0, String arg1)
m_wsbijaia(com.mojang.brigadier.ParseResults<C_pennblrk> arg0, String arg1)
execute(com.mojang.brigadier.ParseResults<ServerCommandSource> parseResults, String command)
execute(com.mojang.brigadier.ParseResults<ServerCommandSource> results, String command)
m_242674_(com.mojang.brigadier.ParseResults<C_2969_> p_242841_, String arg1)
private static com.mojang.brigadier.context.ContextChain<CommandSourceStack>
a(com.mojang.brigadier.ParseResults<et> arg0, String arg1, et 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)
m_vpjfqbjq(com.mojang.brigadier.ParseResults<C_pennblrk> arg0, String arg1, C_pennblrk arg2)
checkCommand(com.mojang.brigadier.ParseResults<ServerCommandSource> parseResults, String command, ServerCommandSource source)
m_vpjfqbjq(com.mojang.brigadier.ParseResults<ServerCommandSource> parse, String arg1, ServerCommandSource source)
m_304974_(com.mojang.brigadier.ParseResults<C_2969_> p_311671_, String p_312044_, C_2969_ p_310074_)
public static void
a(et arg0, Consumer<hs<et>> arg1)
executeCommandInContext(CommandSourceStack arg0, Consumer<ExecutionContext<CommandSourceStack>> arg1)
method_54313(class_2168 arg0, Consumer<class_8854<class_2168>> arg1)
m_xqlznutg(C_pennblrk arg0, Consumer<C_fwdwgvbs<C_pennblrk>> arg1)
callWithContext(ServerCommandSource commandSource, Consumer<CommandExecutionContext<ServerCommandSource>> callback)
m_xqlznutg(ServerCommandSource source, Consumer<C_fwdwgvbs<ServerCommandSource>> arg1)
m_306801_(C_2969_ p_312477_, Consumer<C_302111_<C_2969_>> p_313031_)
public void
a(aqv arg0)
sendCommands(ServerPlayer arg0)
method_9241(class_3222 arg0)
m_ptfvbbhn(C_mxrobsgg arg0)
sendCommandTree(ServerPlayerEntity player)
sendCommandTree(ServerPlayerEntity player)
m_82095_(C_13_ arg0)
private void
a(com.mojang.brigadier.tree.CommandNode<et> arg0, com.mojang.brigadier.tree.CommandNode<ey> arg1, et arg2, Map<com.mojang.brigadier.tree.CommandNode<et>, com.mojang.brigadier.tree.CommandNode<ey>> 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)
m_cwaubznw(com.mojang.brigadier.tree.CommandNode<C_pennblrk> arg0, com.mojang.brigadier.tree.CommandNode<C_sasfholk> arg1, C_pennblrk arg2, Map<com.mojang.brigadier.tree.CommandNode<C_pennblrk>, com.mojang.brigadier.tree.CommandNode<C_sasfholk>> 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)
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)
m_jbvgxqmq(String arg0)
literal(String literal)
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)
m_xsrvaggh(String arg0, com.mojang.brigadier.arguments.ArgumentType<T> arg1)
argument(String name, com.mojang.brigadier.arguments.ArgumentType<T> type)
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(eu$b arg0)
createValidator(Commands$ParseFunction arg0)
method_9238(class_2170$class_2171 arg0)
m_ijwfygzs(C_rieemtgi$C_cblkysxb arg0)
getCommandValidator(CommandManager$CommandParser parser)
getCommandValidator(CommandManager$CommandParser parser)
m_82120_(C_3027_$C_3029_ p_82121_)
public com.mojang.brigadier.CommandDispatcher<CommandSourceStack>
a()
getDispatcher()
method_9235()
m_pesxbdqv()
getDispatcher()
getDispatcher()
m_82094_()
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)
m_thjzmaee(com.mojang.brigadier.ParseResults<S> arg0)
throwException(com.mojang.brigadier.ParseResults<S> parse)
m_thjzmaee(com.mojang.brigadier.ParseResults<S> parse)
m_307768_(com.mojang.brigadier.ParseResults<S> p_311833_)
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)
m_icnzgxdw(com.mojang.brigadier.ParseResults<S> arg0)
getException(com.mojang.brigadier.ParseResults<S> parse)
getException(com.mojang.brigadier.ParseResults<S> parse)
m_82097_(com.mojang.brigadier.ParseResults<S> p_82098_)
public static CommandBuildContext
a(jo$a arg0)
createValidationContext(HolderLookup$Provider arg0)
method_46732(class_7225$class_7874 arg0)
m_ekgimoix(C_vtbxyypo$C_etmlgbig arg0)
createRegistryAccess(RegistryWrapper$WrapperLookup registryLookup)
createBuildContext(HolderLookup$Provider provider)
m_255082_(C_213466_$C_254607_ p_256243_)
public static void
b()
validate()
method_30852()
m_jnqqroqv()
checkMissing()
checkMissing()
m_82138_()