Class Animation
java.lang.Object
me.neznamy.tab.shared.placeholders.Animation
A class representing an animation from animations.yml
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns current up-to-date message depending on current system timegetName()Returns animation's nameString[]Returns array of all nested placeholders used in all framesintReturns refresh interval how often should the placeholder created from this animation refresh including nested placeholders
-
Constructor Details
-
Animation
Constructs new instance with given arguments which are fixed if necessary, such as when refresh is not divisible by 50- Parameters:
name- animation's namelist- list of animation framesinterval- change interval to next frame
-
-
Method Details
-
getMessage
Returns current up-to-date message depending on current system time- Returns:
- current message
-
getName
Returns animation's name- Returns:
- animation's name
-
getRefresh
public int getRefresh()Returns refresh interval how often should the placeholder created from this animation refresh including nested placeholders- Returns:
- refresh interval
-
getNestedPlaceholders
Returns array of all nested placeholders used in all frames- Returns:
- all nested placeholders in all frames
-