Package net.minecraft.commands
Interface ExecutionCommandSource<T extends ExecutionCommandSource<T>>
- All Known Implementing Classes:
ClientCommandSourceStack
,CommandSourceStack
,CommandTests.ErrorCatchingStack
public interface ExecutionCommandSource<T extends ExecutionCommandSource<T>>
-
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
hasPermission
(int p_306071_) boolean
isSilent()
static <T extends ExecutionCommandSource<T>>
com.mojang.brigadier.ResultConsumer<T> withCallback
(CommandResultCallback p_309572_)
-
Method Details
-
hasPermission
boolean hasPermission(int p_306071_) -
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()
-