public interface PotionMeta extends ItemMeta
ItemMeta.HiddenModifierFlag
Modifier and Type | Method and Description |
---|---|
default void |
addEffect(PotionEffect effect)
Adds a provided potion effect to this item.
|
List<PotionEffect> |
effects()
Gets this Potion's applied effects.
|
void |
setEffects(List<PotionEffect> effects)
Sets this Potion's applied effects.
|
displayProperties, flags, setDisplayProperties, setFlag
process
List<PotionEffect> effects()
void setEffects(List<PotionEffect> effects)
effects
- The effects to use in place of the current ones.default void addEffect(PotionEffect effect)
effect
- The effect.Copyright © 2016. All rights reserved.