Package net.minecraft.commands
Interface ExecutionCommandSource<T extends ExecutionCommandSource<T>>
- All Known Implementing Classes:
ClientCommandSourceStack
,CommandSourceStack
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_311834_, com.mojang.brigadier.Message p_310647_, boolean p_310226_, TraceCallbacks p_312033_) default void
handleError
(com.mojang.brigadier.exceptions.CommandSyntaxException p_311076_, boolean p_310707_, TraceCallbacks p_311569_) boolean
hasPermission
(int p_309473_) boolean
isSilent()
static <T extends ExecutionCommandSource<T>>
com.mojang.brigadier.ResultConsumer<T>withCallback
(CommandResultCallback p_311254_)
-
Method Details
-
hasPermission
boolean hasPermission(int p_309473_) -
withCallback
-
callback
CommandResultCallback callback() -
clearCallbacks
-
dispatcher
com.mojang.brigadier.CommandDispatcher<T> dispatcher() -
handleError
void handleError(com.mojang.brigadier.exceptions.CommandExceptionType p_311834_, com.mojang.brigadier.Message p_310647_, boolean p_310226_, @Nullable TraceCallbacks p_312033_) -
isSilent
boolean isSilent() -
handleError
default void handleError(com.mojang.brigadier.exceptions.CommandSyntaxException p_311076_, boolean p_310707_, @Nullable TraceCallbacks p_311569_) -
resultConsumer
static <T extends ExecutionCommandSource<T>> com.mojang.brigadier.ResultConsumer<T> resultConsumer()
-