接口 ConsumableRemoveEffect
表示物品被消耗时要移除的效果。
-
方法概要
修饰符和类型方法说明addEffectType(@NotNull PotionEffectType effect) 添加一个消耗此物品时可能应用的效果。获取消耗此物品时可能移除的效果。voidsetEffectTypes(@NotNull List<PotionEffectType> effects) 设置消耗此物品时可能移除的效果。从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
方法详细资料
-
getEffectTypes
获取消耗此物品时可能移除的效果。原文:Gets the effects which may be removed by this item when consumed.
- 返回:
- 效果
-
setEffectTypes
设置消耗此物品时可能移除的效果。原文:Sets the effects which may be removed by this item when consumed.
- 参数:
effects- 新的效果
-
addEffectType
添加一个消耗此物品时可能应用的效果。原文:Adds an effect which may be applied by this item when consumed.
- 参数:
effect- 效果- 返回:
- 添加的效果
-