Class Animation

java.lang.Object
me.neznamy.tab.shared.placeholders.Animation

public class Animation extends Object
A class representing an animation from animations.yml
  • Constructor Details

    • Animation

      public Animation(String name, List<String> list, int interval)
      Constructs new instance with given arguments which are fixed if necessary, such as when refresh is not divisible by 50
      Parameters:
      name - animation's name
      list - list of animation frames
      interval - change interval to next frame
  • Method Details

    • getMessage

      public String getMessage()
      Returns current up-to-date message depending on current system time
      Returns:
      current message
    • getName

      public String 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

      public String[] getNestedPlaceholders()
      Returns array of all nested placeholders used in all frames
      Returns:
      all nested placeholders in all frames