Interface SwingAnimationComponent

All Superinterfaces:
ConfigurationSerializable

@Experimental public interface SwingAnimationComponent extends ConfigurationSerializable
Represents a component which determines the animation when using this item.
  • Method Details

    • getType

      @NotNull SwingAnimationComponent.Type getType()
      Gets the animation type.
      Returns:
      animation type
    • setType

      void setType(@NotNull SwingAnimationComponent.Type type)
      Sets the animation type
      Parameters:
      type - animation type
    • getDuration

      int getDuration()
      Gets the animation duration.
      Returns:
      animation duration in ticks
    • setDuration

      void setDuration(int ticks)
      Sets the animation duration.
      Parameters:
      ticks - duration in ticks