Class CommandExecuteResult
java.lang.Object
dev.rollczi.litecommands.command.executor.CommandExecuteResult
-
Method Summary
Modifier and TypeMethodDescriptionstatic CommandExecuteResultfailed(CommandExecutor<?> executor, FailedReason failedReason) static CommandExecuteResultfailed(CommandExecutor<?> executor, Object error) static CommandExecuteResult@Nullable ObjectgetError()@Nullable CommandExecutor<?> @Nullable Object@Nullable ThrowablebooleanisFailed()booleanbooleanisThrown()static CommandExecuteResultsuccess(CommandExecutor<?> executor, Object result) static CommandExecuteResultthrown(CommandExecutor<?> executor, Throwable exception) static CommandExecuteResult
-
Method Details
-
getResult
-
getThrowable
-
getError
-
getExecutor
-
isSuccessful
public boolean isSuccessful() -
isFailed
public boolean isFailed() -
isThrown
public boolean isThrown() -
success
-
thrown
-
thrown
-
failed
-
failed
-