Interface ActionQueue
- All Known Implementing Classes:
DefaultActionQueue
public interface ActionQueue
Represents an action queue for executing entity-related actions. Implementations of this interface
handle the execution and addition of entity actions, allowing for organized and sequential processing
of actions on entities.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEntityAction
(EntityAction entityAction) Adds an entity action to the queue for later execution.void
Executes an entity action from the queue.boolean
Checks if the action queue is set to not execute actions.
-
Method Details
-
executeEntityAction
void executeEntityAction()Executes an entity action from the queue. -
addEntityAction
Adds an entity action to the queue for later execution.- Parameters:
entityAction
- The entity action to be added to the queue.
-
isNotExecuted
boolean isNotExecuted()Checks if the action queue is set to not execute actions. When this method returns true, it indicates that the action queue is in a state where it should not perform any execution of entity actions.- Returns:
- true if the action queue is set to not execute actions, false otherwise.
-