Interface ExecutionCommandSource<T extends ExecutionCommandSource<T>>

All Known Implementing Classes:
ClientCommandSourceStack, CommandSourceStack

public interface ExecutionCommandSource<T extends ExecutionCommandSource<T>>
  • Method Details

    • hasPermission

      boolean hasPermission(int permissionLevel)
    • withCallback

      T withCallback(CommandResultCallback callback)
    • callback

    • clearCallbacks

      default T clearCallbacks()
    • dispatcher

      com.mojang.brigadier.CommandDispatcher<T> dispatcher()
    • handleError

      void handleError(com.mojang.brigadier.exceptions.CommandExceptionType exceptionType, com.mojang.brigadier.Message message, boolean success, @Nullable TraceCallbacks traceCallbacks)
    • isSilent

      boolean isSilent()
    • handleError

      default void handleError(com.mojang.brigadier.exceptions.CommandSyntaxException exception, boolean success, @Nullable TraceCallbacks traceCallbacks)
    • resultConsumer

      static <T extends ExecutionCommandSource<T>> com.mojang.brigadier.ResultConsumer<T> resultConsumer()