public interface PotionEffect extends DataSerializable, ImmutableDataHolder<PotionEffect>
PotionEffectType
for a specified
getDuration()
, getAmplifier()
, and
getShowParticles()
. The PotionEffect
itself is immutable
once created and can be offered to Entity
instances through
the PotionEffectData
.Modifier and Type | Method and Description |
---|---|
int |
getAmplifier()
Gets the amplifier at which this potion effect
will apply effects.
|
int |
getDuration()
Gets the duration for which this potion effect
will apply for.
|
boolean |
getShowParticles()
Gets whether or not this potion effect should
show particles.
|
PotionEffectType |
getType()
Gets the
PotionEffectType of this potion. |
boolean |
isAmbient()
Gets if the potion effect is an ambient effect.
|
getManipulators
toContainer
get, getContainers, getOrCreate, merge, merge, supports, transform, with, with, with, with, without
PotionEffectType getType()
PotionEffectType
of this potion.int getDuration()
int getAmplifier()
boolean isAmbient()
boolean getShowParticles()