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 T
com.mojang.brigadier.CommandDispatcher
<T> void
handleError
(com.mojang.brigadier.exceptions.CommandExceptionType p_307509_, com.mojang.brigadier.Message p_307413_, boolean p_307299_, TraceCallbacks p_307535_) default void
handleError
(com.mojang.brigadier.exceptions.CommandSyntaxException p_307419_, boolean p_307222_, TraceCallbacks p_307604_) boolean
isSilent()
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 p_307509_, com.mojang.brigadier.Message p_307413_, boolean p_307299_, @Nullable TraceCallbacks p_307535_) -
isSilent
boolean isSilent() -
handleError
default void handleError(com.mojang.brigadier.exceptions.CommandSyntaxException p_307419_, boolean p_307222_, @Nullable TraceCallbacks p_307604_) -
resultConsumer
static <T extends ExecutionCommandSource<T>> com.mojang.brigadier.ResultConsumer<T> resultConsumer()
-