Package net.minecraft.server.commands
Class FunctionCommand
java.lang.Object
net.minecraft.server.commands.FunctionCommand
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
(package private) static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
(package private) static final FunctionCommand.Callbacks<CommandSourceStack>
static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <T extends ExecutionCommandSource<T>>
CommandResultCallbackdecorateOutputIfNeeded
(T p_309706_, FunctionCommand.Callbacks<T> p_309672_, ResourceLocation p_309690_, CommandResultCallback p_309608_) (package private) static CompoundTag
getArgumentTag
(NbtPathArgument.NbtPath p_295114_, DataAccessor p_296132_) private static <T extends ExecutionCommandSource<T>>
voidinstantiateAndQueueFunctions
(CompoundTag p_309636_, ExecutionControl<T> p_309536_, com.mojang.brigadier.CommandDispatcher<T> p_309639_, T p_309605_, CommandFunction<T> p_309610_, ResourceLocation p_309719_, CommandResultCallback p_309544_, boolean p_309542_) static CommandSourceStack
modifySenderForExecution
(CommandSourceStack p_305783_) static <T extends ExecutionCommandSource<T>>
voidqueueFunctions
(Collection<CommandFunction<T>> p_305938_, CompoundTag p_306214_, T p_306048_, T p_305876_, ExecutionControl<T> p_305902_, FunctionCommand.Callbacks<T> p_306230_, ChainModifiers p_309589_) private static <T extends ExecutionCommandSource<T>>
voidqueueFunctionsAsReturn
(Collection<CommandFunction<T>> p_309534_, CompoundTag p_309696_, T p_309655_, T p_309547_, ExecutionControl<T> p_309663_, FunctionCommand.Callbacks<T> p_309585_) private static <T extends ExecutionCommandSource<T>>
voidqueueFunctionsNoReturn
(Collection<CommandFunction<T>> p_309573_, CompoundTag p_309637_, T p_309693_, T p_309593_, ExecutionControl<T> p_309574_, FunctionCommand.Callbacks<T> p_309570_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_137715_)
-
Field Details
-
ERROR_ARGUMENT_NOT_COMPOUND
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_ARGUMENT_NOT_COMPOUND -
ERROR_NO_FUNCTIONS
static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NO_FUNCTIONS -
ERROR_FUNCTION_INSTANTATION_FAILURE
public static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_FUNCTION_INSTANTATION_FAILURE -
SUGGEST_FUNCTION
public static final com.mojang.brigadier.suggestion.SuggestionProvider<CommandSourceStack> SUGGEST_FUNCTION -
FULL_CONTEXT_CALLBACKS
-
-
Constructor Details
-
FunctionCommand
public FunctionCommand()
-
-
Method Details
-
register
-
getArgumentTag
static CompoundTag getArgumentTag(NbtPathArgument.NbtPath p_295114_, DataAccessor p_296132_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
modifySenderForExecution
-
queueFunctions
public static <T extends ExecutionCommandSource<T>> void queueFunctions(Collection<CommandFunction<T>> p_305938_, @Nullable CompoundTag p_306214_, T p_306048_, T p_305876_, ExecutionControl<T> p_305902_, FunctionCommand.Callbacks<T> p_306230_, ChainModifiers p_309589_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
instantiateAndQueueFunctions
private static <T extends ExecutionCommandSource<T>> void instantiateAndQueueFunctions(@Nullable CompoundTag p_309636_, ExecutionControl<T> p_309536_, com.mojang.brigadier.CommandDispatcher<T> p_309639_, T p_309605_, CommandFunction<T> p_309610_, ResourceLocation p_309719_, CommandResultCallback p_309544_, boolean p_309542_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
decorateOutputIfNeeded
private static <T extends ExecutionCommandSource<T>> CommandResultCallback decorateOutputIfNeeded(T p_309706_, FunctionCommand.Callbacks<T> p_309672_, ResourceLocation p_309690_, CommandResultCallback p_309608_) -
queueFunctionsAsReturn
private static <T extends ExecutionCommandSource<T>> void queueFunctionsAsReturn(Collection<CommandFunction<T>> p_309534_, @Nullable CompoundTag p_309696_, T p_309655_, T p_309547_, ExecutionControl<T> p_309663_, FunctionCommand.Callbacks<T> p_309585_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
queueFunctionsNoReturn
private static <T extends ExecutionCommandSource<T>> void queueFunctionsNoReturn(Collection<CommandFunction<T>> p_309573_, @Nullable CompoundTag p_309637_, T p_309693_, T p_309593_, ExecutionControl<T> p_309574_, FunctionCommand.Callbacks<T> p_309570_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-