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_310241_, com.mojang.brigadier.context.ContextChain<T> p_311766_, ChainModifiers p_310779_, ExecutionControl<T> p_309382_)
      Specified by:
      run in interface CustomCommandExecutor<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