Package net.minecraft.commands
Interface ExecutionCommandSource<T extends ExecutionCommandSource<T>>
- All Superinterfaces:
PermissionSource
- All Known Implementing Classes:
ClientCommandSourceStack,CommandSourceStack
public interface ExecutionCommandSource<T extends ExecutionCommandSource<T>>
extends PermissionSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.commands.PermissionSource
PermissionSource.Check<T extends PermissionSource> -
Method Summary
Modifier and TypeMethodDescriptioncallback()default Tcom.mojang.brigadier.CommandDispatcher<T> voidhandleError(com.mojang.brigadier.exceptions.CommandExceptionType pExceptionType, com.mojang.brigadier.Message pMessage, boolean pSuccess, TraceCallbacks pTraceCallbacks) default voidhandleError(com.mojang.brigadier.exceptions.CommandSyntaxException pException, boolean pSuccess, TraceCallbacks pTraceCallbacks) booleanisSilent()static <T extends ExecutionCommandSource<T>>
com.mojang.brigadier.ResultConsumer<T> withCallback(CommandResultCallback pCallback) Methods inherited from interface net.minecraft.commands.PermissionSource
allowsSelectors, hasPermission
-
Method Details
-
withCallback
-
callback
CommandResultCallback callback() -
clearCallbacks
-
dispatcher
com.mojang.brigadier.CommandDispatcher<T> dispatcher() -
handleError
void handleError(com.mojang.brigadier.exceptions.CommandExceptionType pExceptionType, com.mojang.brigadier.Message pMessage, boolean pSuccess, @Nullable TraceCallbacks pTraceCallbacks) -
isSilent
boolean isSilent() -
handleError
default void handleError(com.mojang.brigadier.exceptions.CommandSyntaxException pException, boolean pSuccess, @Nullable TraceCallbacks pTraceCallbacks) -
resultConsumer
static <T extends ExecutionCommandSource<T>> com.mojang.brigadier.ResultConsumer<T> resultConsumer()
-