接口 SwingAnimationComponent

所有超级接口:
ConfigurationSerializable

@Experimental public interface SwingAnimationComponent extends ConfigurationSerializable
表示一个决定使用此物品时动画的组件。
  • 方法详细资料

    • getType

      获取动画类型。

      原文:Gets the animation type.

      返回:
      动画类型
    • setType

      设置动画类型。

      原文:Sets the animation type.

      参数:
      type - 动画类型
    • getDuration

      int getDuration()
      获取动画持续时间。

      原文:Gets the animation duration.

      返回:
      动画持续时间(以刻为单位)
    • setDuration

      void setDuration(int ticks)
      设置动画持续时间。

      原文:Sets the animation duration.

      参数:
      ticks - 持续时间(以刻为单位)