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>
  • 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:
      run in interface 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
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException