Class MovePowerBlock
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.commands.BaseCommand
nl.pim16aap2.animatedarchitecture.core.commands.StructureTargetCommand
nl.pim16aap2.animatedarchitecture.core.commands.MovePowerBlock
Represents the command to initiate the process to move the powerblock of a structure to a different location.
-
Nested Class Summary
Nested classes/interfaces inherited from class nl.pim16aap2.animatedarchitecture.core.commands.StructureTargetCommand
StructureTargetCommand.StructureDescription -
Field Summary
Fields inherited from class nl.pim16aap2.animatedarchitecture.core.commands.StructureTargetCommand
structureAttribute, structureRetrieverFields inherited from class nl.pim16aap2.animatedarchitecture.core.commands.BaseCommand
localizer, textFactory -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanChecks if thisBaseCommandis available for non-IPlayers (e.g. the server).Gets theCommandDefinitionthat contains the definition of thisBaseCommand.protected CompletableFuture<?> performAction(Structure structure) Performs the action of this command on theStructure.toString()Methods inherited from class nl.pim16aap2.animatedarchitecture.core.commands.StructureTargetCommand
executeCommand, getRequiredProperties, getRetrievedStructureDescription, getRetrieverResult, getStructureAttribute, getStructureRetriever, handleDatabaseActionCancelled, handleDatabaseActionFail, handleDatabaseActionResult, handleDatabaseActionSuccess, hasRequiredProperties, isAllowed, notifyMissingProperties, sendUpdatedInfo, setRetrieverResultMethods inherited from class nl.pim16aap2.animatedarchitecture.core.commands.BaseCommand
availableForPlayers, getCommandSender, getStructure, hasAccessToAttribute, hasPermission, run, startExecution, validInput
-
Method Details
-
getCommand
Description copied from class:BaseCommandGets theCommandDefinitionthat contains the definition of thisBaseCommand.- Specified by:
getCommandin classBaseCommand- Returns:
- The
CommandDefinitionthat contains the definition of thisBaseCommand.
-
availableForNonPlayers
protected boolean availableForNonPlayers()Description copied from class:BaseCommandChecks if thisBaseCommandis available for non-IPlayers (e.g. the server).- Overrides:
availableForNonPlayersin classBaseCommand- Returns:
- True if a non-
IPlayercan execute this command.
-
performAction
Description copied from class:StructureTargetCommandPerforms the action of this command on theStructure.- Specified by:
performActionin classStructureTargetCommand- Parameters:
structure- TheStructureto perform the action on.- Returns:
- The future of the command execution.
-
toString
- Overrides:
toStringin classBaseCommand
-