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 SummaryNested classes/interfaces inherited from interface net.minecraft.commands.execution.CustomCommandExecutorCustomCommandExecutor.CommandAdapter<T>, CustomCommandExecutor.WithErrorHandling<T extends ExecutionCommandSource<T>>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
WithErrorHandlingpublic WithErrorHandling()
 
- 
- 
Method Details- 
runpublic final void run(T p_306339_, com.mojang.brigadier.context.ContextChain<T> p_306289_, ChainModifiers p_309578_, ExecutionControl<T> p_306027_) - Specified by:
- runin interface- CustomCommandExecutor<T extends ExecutionCommandSource<T>>
 
- 
onErrorprotected void onError(com.mojang.brigadier.exceptions.CommandSyntaxException p_306165_, T p_306155_, ChainModifiers p_309597_, @Nullable TraceCallbacks p_307254_) 
- 
runGuardedprotected 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
 
 
-