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_309693_, FunctionCommand.Callbacks<T> p_309991_, ResourceLocation p_312510_, CommandResultCallback p_312314_) (package private) static CompoundTag
getArgumentTag
(NbtPathArgument.NbtPath p_298274_, DataAccessor p_301396_) private static <T extends ExecutionCommandSource<T>>
voidinstantiateAndQueueFunctions
(CompoundTag p_312138_, ExecutionControl<T> p_309532_, com.mojang.brigadier.CommandDispatcher<T> p_312204_, T p_311370_, CommandFunction<T> p_310160_, ResourceLocation p_311048_, CommandResultCallback p_312950_, boolean p_312453_) static CommandSourceStack
modifySenderForExecution
(CommandSourceStack p_309881_) static <T extends ExecutionCommandSource<T>>
voidqueueFunctions
(Collection<CommandFunction<T>> p_311080_, CompoundTag p_311435_, T p_310141_, T p_312402_, ExecutionControl<T> p_309669_, FunctionCommand.Callbacks<T> p_312300_, ChainModifiers p_312226_) private static <T extends ExecutionCommandSource<T>>
voidqueueFunctionsAsReturn
(Collection<CommandFunction<T>> p_309905_, CompoundTag p_312616_, T p_312541_, T p_310023_, ExecutionControl<T> p_312344_, FunctionCommand.Callbacks<T> p_309916_) private static <T extends ExecutionCommandSource<T>>
voidqueueFunctionsNoReturn
(Collection<CommandFunction<T>> p_312947_, CompoundTag p_311961_, T p_310755_, T p_312089_, ExecutionControl<T> p_310294_, FunctionCommand.Callbacks<T> p_311742_) 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_298274_, DataAccessor p_301396_) 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_311080_, @Nullable CompoundTag p_311435_, T p_310141_, T p_312402_, ExecutionControl<T> p_309669_, FunctionCommand.Callbacks<T> p_312300_, ChainModifiers p_312226_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
instantiateAndQueueFunctions
private static <T extends ExecutionCommandSource<T>> void instantiateAndQueueFunctions(@Nullable CompoundTag p_312138_, ExecutionControl<T> p_309532_, com.mojang.brigadier.CommandDispatcher<T> p_312204_, T p_311370_, CommandFunction<T> p_310160_, ResourceLocation p_311048_, CommandResultCallback p_312950_, boolean p_312453_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
decorateOutputIfNeeded
private static <T extends ExecutionCommandSource<T>> CommandResultCallback decorateOutputIfNeeded(T p_309693_, FunctionCommand.Callbacks<T> p_309991_, ResourceLocation p_312510_, CommandResultCallback p_312314_) -
queueFunctionsAsReturn
private static <T extends ExecutionCommandSource<T>> void queueFunctionsAsReturn(Collection<CommandFunction<T>> p_309905_, @Nullable CompoundTag p_312616_, T p_312541_, T p_310023_, ExecutionControl<T> p_312344_, FunctionCommand.Callbacks<T> p_309916_) 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_312947_, @Nullable CompoundTag p_311961_, T p_310755_, T p_312089_, ExecutionControl<T> p_310294_, FunctionCommand.Callbacks<T> p_311742_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-