Potion Effect
public void PotionEffect(PotionEffectType type, int duration, int amplifier, boolean ambient, boolean particles)
Creates getClassById potion effect.
Parameters
type
effect type
duration
measured in ticks, see getDuration
amplifier
the amplifier, see getAmplifier
ambient
the ambient status, see isAmbient
particles
the particle status, see hasParticles
Creates getClassById potion effect. Assumes that particles are visible
Parameters
type
effect type
duration
measured in ticks, see getDuration
amplifier
the amplifier, see getAmplifier
ambient
the ambient status, see isAmbient
Creates getClassById potion effect. Assumes ambient is true.
Parameters
type
Effect type
duration
measured in ticks
amplifier
the amplifier for the effect
See also
Constructor for deserialization.
Parameters
map
the map to deserialize from