接口的使用
org.bukkit.inventory.meta.components.consumable.effects.ConsumableEffect
使用ConsumableEffect的程序包
程序包
说明
All classes related to the Consumable Component.
All classes related to effects from the Consumable Component.
-
org.bukkit.inventory.meta.components.consumable中ConsumableEffect的使用
修饰符和类型方法说明ConsumableComponent.addEffect
(@NotNull ConsumableEffect effect) Adds an effect which may be applied by this item when consumed.修饰符和类型方法说明ConsumableComponent.getEffects()
Gets the effects which may be applied by this item when consumed.修饰符和类型方法说明ConsumableComponent.addEffect
(@NotNull ConsumableEffect effect) Adds an effect which may be applied by this item when consumed.修饰符和类型方法说明void
ConsumableComponent.setEffects
(@NotNull List<ConsumableEffect> effects) Sets the effects which may be applied by this item when consumed. -
org.bukkit.inventory.meta.components.consumable.effects中ConsumableEffect的使用
修饰符和类型接口说明interface
Represent the effects applied when an item is consumed.interface
Represent the removal/clearing of all effects when an item is consumed.interface
Represent a sound played when an item is consumed.interface
Represent the effects to be removed when an item is consumed.interface
Represent a random teleport when an item is consumed.