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