An easy to use framework for creating action bars and sending them to the player.
2 out of the box implementations of the Action bar:
- StaticActionBar - provide the message as a String, and it will display that string to the player.
- Timer - specify time, will send a "loading bar" timer to the player that takes that amount of time to complete.
Below is a code snippet of using a timer, along with what we see in-game:
ActionBar can be subclassed to create new types of action bar - StaticActionBar and Timer are both subclasses of ActionBar.
ActionBarHandler uses a priority queue system for action bars sent to the same player, so gives more control when sending multiple action bars to a player.