Interface CancelRules
- All Superinterfaces:
DataSerializable
Rules for cancelling command code execution when using delayed execution.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CancelRules.Builder
builder()
boolean
Whether the player is allowed to move while waiting for a command to be executed.boolean
Whether the player is allowed to use other commands while waiting for the current command to execute.static CancelRules
of
(boolean allowMoving, boolean allowOtherCommand) static CancelRules.Builder
Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializable
contentVersion, toContainer
-
Method Details
-
builder
-
unregisteredBuilder
-
of
-
isAllowMoving
boolean isAllowMoving()Whether the player is allowed to move while waiting for a command to be executed. -
isAllowOtherCommand
boolean isAllowOtherCommand()Whether the player is allowed to use other commands while waiting for the current command to execute.
-