Class StructureSpecificationManager
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.api.restartable.Restartable
nl.pim16aap2.animatedarchitecture.core.managers.StructureSpecificationManager
- All Implemented Interfaces:
IRestartable
Represents a manager for handling structure specifications requests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancancelRequest(IPlayer player) Cancels an active request for a player.booleanhandleInput(IPlayer player, String input) Handles input for a player.booleanChecks if there is an open structure specification request for a player.voidplaceRequest(IPlayer player, DelayedInputRequest<String> request) Registers a new delayed input request for the given player.voidshutDown()Handles a shutdown.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IRestartable
initialize
-
Constructor Details
-
StructureSpecificationManager
-
-
Method Details
-
isActive
Checks if there is an open structure specification request for a player.- Parameters:
player- The player to check.- Returns:
- True if there is an open structure specification request for the player.
-
placeRequest
Registers a new delayed input request for the given player.If a request is already active for the given player, the old request will be cancelled and replaced by the new one.
- Parameters:
player- The player to request.request- The request.
-
handleInput
-
cancelRequest
Cancels an active request for a player.- Parameters:
player- The player whose requests to cancel.- Returns:
- True if a request was cancelled.
-
shutDown
-