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 pSource, com.mojang.brigadier.context.ContextChain<T> pContextChain, ChainModifiers pChainModifiers, ExecutionControl<T> pExecutionControl)
      Specified by:
      run in interface CustomCommandExecutor<T extends ExecutionCommandSource<T>>
    • onError

      protected void onError(com.mojang.brigadier.exceptions.CommandSyntaxException pError, T pSource, ChainModifiers pChainModifiers, @Nullable TraceCallbacks pTraceCallbacks)
    • runGuarded

      protected abstract void runGuarded(T pSource, com.mojang.brigadier.context.ContextChain<T> pContextChain, ChainModifiers pChainModifiers, ExecutionControl<T> pExecutionControl) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException