接口 ConsumableRemoveEffect
Represent the effects to be removed when an item is consumed.
-
方法概要
修饰符和类型方法说明addEffectType
(@NotNull PotionEffectType effect) Adds an effect which may be applied by this item when consumed.Gets the effects which may be removed by this item when consumed.void
setEffectTypes
(@NotNull List<PotionEffectType> effects) Sets the effects which may be removed by this item when consumed.从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
方法详细资料
-
getEffectTypes
Gets the effects which may be removed by this item when consumed.- 返回:
- the effects
-
setEffectTypes
Sets the effects which may be removed by this item when consumed.- 参数:
effects
- new effects
-
addEffectType
Adds an effect which may be applied by this item when consumed.- 参数:
effect
- the effect- 返回:
- the added effect
-