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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidonError(com.mojang.brigadier.exceptions.CommandSyntaxException p_306165_, T p_306155_, ChainModifiers p_309597_, TraceCallbacks p_307254_) final voidrun(T p_306339_, com.mojang.brigadier.context.ContextChain<T> p_306289_, ChainModifiers p_309578_, ExecutionControl<T> p_306027_) protected abstract voidrunGuarded(T p_306117_, com.mojang.brigadier.context.ContextChain<T> p_306121_, ChainModifiers p_309631_, ExecutionControl<T> p_305981_)  
- 
Constructor Details
- 
WithErrorHandling
public WithErrorHandling() 
 - 
 - 
Method Details
- 
run
public final void run(T p_306339_, com.mojang.brigadier.context.ContextChain<T> p_306289_, ChainModifiers p_309578_, ExecutionControl<T> p_306027_) - Specified by:
 runin interfaceCustomCommandExecutor<T extends ExecutionCommandSource<T>>
 - 
onError
protected void onError(com.mojang.brigadier.exceptions.CommandSyntaxException p_306165_, T p_306155_, ChainModifiers p_309597_, @Nullable TraceCallbacks p_307254_)  - 
runGuarded
protected abstract void runGuarded(T p_306117_, com.mojang.brigadier.context.ContextChain<T> p_306121_, ChainModifiers p_309631_, ExecutionControl<T> p_305981_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
 com.mojang.brigadier.exceptions.CommandSyntaxException
 
 -