枚举的使用
org.bukkit.inventory.meta.components.consumable.ConsumableComponent.Animation
程序包
说明
All classes related to the Consumable Component.
-
org.bukkit.inventory.meta.components.consumable中ConsumableComponent.Animation的使用
修饰符和类型方法说明ConsumableComponent.getAnimation()
Gets the animation used during consumption of the item.返回带有指定名称的该类型的枚举常量。static ConsumableComponent.Animation[]
ConsumableComponent.Animation.values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明void
ConsumableComponent.setAnimation
(@NotNull ConsumableComponent.Animation animation) Sets the animation used during consumption of the item.