PotionEffect

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


public void PotionEffect(PotionEffectType type, int duration, int amplifier, boolean ambient)

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


public void PotionEffect(PotionEffectType type, int duration, int amplifier)

Creates getClassById potion effect. Assumes ambient is true.

Parameters

type

Effect type

duration

measured in ticks

amplifier

the amplifier for the effect

See also


public void PotionEffect(Map<String, Object> map)

Constructor for deserialization.

Parameters

map

the map to deserialize from