Interface ConsumableRemoveEffect
- All Superinterfaces:
ConfigurationSerializable,ConsumableEffect
Represent the effects to be removed when an item is consumed.
-
Method Summary
Modifier and TypeMethodDescriptionaddEffectType(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.voidsetEffectTypes(List<PotionEffectType> effects) Sets the effects which may be removed by this item when consumed.Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
Method Details
-
getEffectTypes
Gets the effects which may be removed by this item when consumed.- Returns:
- the effects
-
setEffectTypes
Sets the effects which may be removed by this item when consumed.- Parameters:
effects- new effects
-
addEffectType
Adds an effect which may be applied by this item when consumed.- Parameters:
effect- the effect- Returns:
- the added effect
-