public class CommandResult extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CommandResult.Builder
A builder for
CommandResult s. |
Modifier and Type | Method and Description |
---|---|
static CommandResult.Builder |
builder()
Returns a
CommandResult.Builder . |
static CommandResult |
empty()
Returns a new
CommandResult indicating that a command was
processed. |
Optional<Integer> |
getAffectedBlocks()
Gets the number of blocks affected by the command.
|
Optional<Integer> |
getAffectedEntities()
Gets the number of entities affected by the command.
|
Optional<Integer> |
getAffectedItems()
Gets the number of items affected by the command.
|
Optional<Integer> |
getQueryResult()
Gets the query result of the command, e.g.
|
Optional<Integer> |
getSuccessCount()
Gets the success count of the command.
|
static CommandResult |
success()
Returns a result indicating the command was processed with a single success.
|
public static CommandResult.Builder builder()
CommandResult.Builder
.public static CommandResult empty()
CommandResult
indicating that a command was
processed.public static CommandResult success()
public Optional<Integer> getSuccessCount()
public Optional<Integer> getAffectedBlocks()
public Optional<Integer> getAffectedEntities()
public Optional<Integer> getAffectedItems()