Package net.minecraft.commands.execution
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 net.minecraft.commands.execution.CustomCommandExecutor
CustomCommandExecutor.CommandAdapter<T>, CustomCommandExecutor.WithErrorHandling<T extends ExecutionCommandSource<T>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
onError
(com.mojang.brigadier.exceptions.CommandSyntaxException p_313040_, T p_312743_, ChainModifiers p_309642_, TraceCallbacks p_309545_) final void
run
(T p_310241_, com.mojang.brigadier.context.ContextChain<T> p_311766_, ChainModifiers p_310779_, ExecutionControl<T> p_309382_) protected abstract void
runGuarded
(T p_311664_, com.mojang.brigadier.context.ContextChain<T> p_312225_, ChainModifiers p_309888_, ExecutionControl<T> p_313051_)
-
Constructor Details
-
WithErrorHandling
public WithErrorHandling()
-
-
Method Details
-
run
public final void run(T p_310241_, com.mojang.brigadier.context.ContextChain<T> p_311766_, ChainModifiers p_310779_, ExecutionControl<T> p_309382_) - Specified by:
run
in interfaceCustomCommandExecutor<T extends ExecutionCommandSource<T>>
-
onError
protected void onError(com.mojang.brigadier.exceptions.CommandSyntaxException p_313040_, T p_312743_, ChainModifiers p_309642_, @Nullable TraceCallbacks p_309545_) -
runGuarded
protected abstract void runGuarded(T p_311664_, com.mojang.brigadier.context.ContextChain<T> p_312225_, ChainModifiers p_309888_, ExecutionControl<T> p_313051_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-