类 CustomCommandExecutor.WithErrorHandling<T extends ExecutionCommandSource<T>>
java.lang.Object
net.minecraft.commands.execution.CustomCommandExecutor.WithErrorHandling<T>
- 所有已实现的接口:
CustomCommandExecutor<T>
- 封闭接口:
CustomCommandExecutor<T>
public abstract static class CustomCommandExecutor.WithErrorHandling<T extends ExecutionCommandSource<T>>
extends Object
implements CustomCommandExecutor<T>
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.commands.execution.CustomCommandExecutor
CustomCommandExecutor.CommandAdapter<T>, CustomCommandExecutor.WithErrorHandling<T extends ExecutionCommandSource<T>>
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
onError
(com.mojang.brigadier.exceptions.CommandSyntaxException p_306165_, T p_306155_, ChainModifiers p_309597_, TraceCallbacks p_307254_) final void
run
(T p_306339_, com.mojang.brigadier.context.ContextChain<T> p_306289_, ChainModifiers p_309578_, ExecutionControl<T> p_306027_) protected abstract void
runGuarded
(T p_306117_, com.mojang.brigadier.context.ContextChain<T> p_306121_, ChainModifiers p_309631_, ExecutionControl<T> p_305981_)
-
构造器详细资料
-
WithErrorHandling
public WithErrorHandling()
-
-
方法详细资料
-
run
public final void run(T p_306339_, com.mojang.brigadier.context.ContextChain<T> p_306289_, ChainModifiers p_309578_, ExecutionControl<T> p_306027_) - 指定者:
run
在接口中CustomCommandExecutor<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 - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-