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
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract CompoundTag
arguments
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_311128_) void
runGuarded
(CommandSourceStack p_310423_, com.mojang.brigadier.context.ContextChain<CommandSourceStack> p_311781_, ChainModifiers p_313209_, ExecutionControl<CommandSourceStack> p_312609_) Methods inherited from class net.minecraft.commands.execution.CustomCommandExecutor.WithErrorHandling
onError, run
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.commands.execution.CustomCommandExecutor
run
Methods 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_311128_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
runGuarded
public void runGuarded(CommandSourceStack p_310423_, com.mojang.brigadier.context.ContextChain<CommandSourceStack> p_311781_, ChainModifiers p_313209_, ExecutionControl<CommandSourceStack> p_312609_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
runGuarded
in classCustomCommandExecutor.WithErrorHandling<CommandSourceStack>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-