java.lang.Object
de.marcely.bedwars.api.cosmetics.shop.data.Animation
All Implemented Interfaces:
ActionData

public abstract class Animation extends Object implements ActionData
Data for when an animation should be played.
See Also:
  • Constructor Details

    • Animation

      public Animation()
  • Method Details

    • getType

      public ActionDataType<Animation> getType()
      Description copied from interface: ActionData
      Returns the type of this action data.
      Specified by:
      getType in interface ActionData
      Returns:
      The type represented by this data
    • getId

      public abstract String getId()
      Returns the unique id of this animations.

      May represent the id that was defined in configs. If none was defined (as it was configured within the item itself), it may be an auto-generated id.

      Returns:
      The id
    • getLocation

      public abstract AnimationLocation getLocation()
      Get the location rule used for the animation.
      Returns:
      The type of location at which the animation is held
    • getHandlers

      public abstract List<? extends AnimationHandler> getHandlers()
      Get all the handlers that play when the animation starts.
      Returns:
      An immutable list containing this animation's handlers