Interface ConsumableRemoveEffect
- All Superinterfaces:
- ConfigurationSerializable,- ConsumableEffect
Represent the effects to be removed when an item is consumed.
- 
Method SummaryModifier 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.ConfigurationSerializableserialize
- 
Method Details- 
getEffectTypesGets the effects which may be removed by this item when consumed.- Returns:
- the effects
 
- 
setEffectTypesSets the effects which may be removed by this item when consumed.- Parameters:
- effects- new effects
 
- 
addEffectTypeAdds an effect which may be applied by this item when consumed.- Parameters:
- effect- the effect
- Returns:
- the added effect
 
 
-