Class CustomCommandExecutor.WithErrorHandling<T extends ExecutionCommandSource<T>>
java.lang.Object
net.minecraft.commands.execution.CustomCommandExecutor.WithErrorHandling<T>
- All Implemented Interfaces:
CustomCommandExecutor<T>
- Direct Known Subclasses:
DebugCommand.TraceCustomExecutor, FunctionCommand.FunctionCustomExecutor
- Enclosing interface:
CustomCommandExecutor<T>
public abstract static class CustomCommandExecutor.WithErrorHandling<T extends ExecutionCommandSource<T>>
extends Object
implements CustomCommandExecutor<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface CustomCommandExecutor
CustomCommandExecutor.CommandAdapter<T>, CustomCommandExecutor.WithErrorHandling<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonError(com.mojang.brigadier.exceptions.CommandSyntaxException e, T sender, ChainModifiers modifiers, @Nullable TraceCallbacks tracer) final voidrun(T sender, com.mojang.brigadier.context.ContextChain<T> currentStep, ChainModifiers modifiers, ExecutionControl<T> output) protected abstract voidrunGuarded(T sender, com.mojang.brigadier.context.ContextChain<T> currentStep, ChainModifiers modifiers, ExecutionControl<T> output)
-
Constructor Details
-
WithErrorHandling
public WithErrorHandling()
-
-
Method Details
-
run
public final void run(T sender, com.mojang.brigadier.context.ContextChain<T> currentStep, ChainModifiers modifiers, ExecutionControl<T> output) - Specified by:
runin interfaceCustomCommandExecutor<T extends ExecutionCommandSource<T>>
-
onError
protected void onError(com.mojang.brigadier.exceptions.CommandSyntaxException e, T sender, ChainModifiers modifiers, @Nullable TraceCallbacks tracer) -
runGuarded
protected abstract void runGuarded(T sender, com.mojang.brigadier.context.ContextChain<T> currentStep, ChainModifiers modifiers, ExecutionControl<T> output) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-