public static class CommandResult.Builder extends Object
CommandResult
s.Modifier and Type | Method and Description |
---|---|
CommandResult.Builder |
affectedBlocks(Integer affectedBlocks)
Sets the amount of blocks affected by the command.
|
CommandResult.Builder |
affectedEntities(Integer affectedEntities)
Sets the amount of entities affected by the command.
|
CommandResult.Builder |
affectedItems(Integer affectedItems)
Sets the amount of items affected by the command.
|
CommandResult |
build()
Builds the
CommandResult . |
CommandResult.Builder |
queryResult(Integer queryResult)
Sets the query result of the command, e.g.
|
CommandResult.Builder |
successCount(Integer successCount)
Sets if the command has been processed.
|
public CommandResult.Builder successCount(@Nullable Integer successCount)
successCount
- If the command has been processedpublic CommandResult.Builder affectedBlocks(@Nullable Integer affectedBlocks)
affectedBlocks
- The amount of blocks affected by the commandpublic CommandResult.Builder affectedEntities(@Nullable Integer affectedEntities)
affectedEntities
- The amount of entities affected by the
commandpublic CommandResult.Builder affectedItems(@Nullable Integer affectedItems)
affectedItems
- The amount of items affected by the commandpublic CommandResult.Builder queryResult(@Nullable Integer queryResult)
queryResult
- The query result of the commandpublic CommandResult build()
CommandResult
.