Class FunctionCommand.FunctionCustomExecutor
java.lang.Object
net.minecraft.commands.execution.CustomCommandExecutor.WithErrorHandling<CommandSourceStack>
net.minecraft.server.commands.FunctionCommand.FunctionCustomExecutor
- All Implemented Interfaces:
com.mojang.brigadier.Command<CommandSourceStack>, CustomCommandExecutor<CommandSourceStack>, CustomCommandExecutor.CommandAdapter<CommandSourceStack>
- Enclosing class:
FunctionCommand
private abstract static class FunctionCommand.FunctionCustomExecutor
extends CustomCommandExecutor.WithErrorHandling<CommandSourceStack>
implements CustomCommandExecutor.CommandAdapter<CommandSourceStack>
-
Nested Class Summary
Nested classes/interfaces inherited from interface CustomCommandExecutor
CustomCommandExecutor.CommandAdapter<T>, CustomCommandExecutor.WithErrorHandling<T> -
Field Summary
Fields inherited from interface com.mojang.brigadier.Command
SINGLE_SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @Nullable CompoundTagarguments(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) voidrunGuarded(CommandSourceStack sender, com.mojang.brigadier.context.ContextChain<CommandSourceStack> currentStep, ChainModifiers modifiers, ExecutionControl<CommandSourceStack> output) Methods inherited from class CustomCommandExecutor.WithErrorHandling
onError, runMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CustomCommandExecutor
runMethods inherited from interface CustomCommandExecutor.CommandAdapter
run
-
Constructor Details
-
FunctionCustomExecutor
private FunctionCustomExecutor()
-
-
Method Details
-
arguments
protected abstract @Nullable CompoundTag arguments(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
runGuarded
public void runGuarded(CommandSourceStack sender, com.mojang.brigadier.context.ContextChain<CommandSourceStack> currentStep, ChainModifiers modifiers, ExecutionControl<CommandSourceStack> output) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
runGuardedin classCustomCommandExecutor.WithErrorHandling<CommandSourceStack>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-