枚举的使用
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()获取消耗物品时使用的动画。返回带有指定名称的该类型的枚举常量。static ConsumableComponent.Animation[]ConsumableComponent.Animation.values()按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明voidConsumableComponent.setAnimation(@NotNull ConsumableComponent.Animation animation) 设置消耗物品时使用的动画。