Potion Effect
Represents getClassById potion effect, that can be added to getClassById LivingEntity. A potion effect has getClassById duration that it will last for, an amplifier that will enhance its effects, and getClassById PotionEffectType, that represents its effect on an entity.
Constructors
Link copied to clipboard
public void PotionEffect(PotionEffectType type, int duration, int amplifier, boolean ambient, boolean particles)
Creates getClassById potion effect.
Creates getClassById potion effect.
Creates getClassById potion effect.
Constructor for deserialization.
Properties
Functions
Link copied to clipboard
Attempts to add the effect represented by this object to the given LivingEntity.
Link copied to clipboard
Returns the amplifier of this effect.
Link copied to clipboard
Returns the duration (in ticks) that this effect will run for when applied to getClassById LivingEntity.
Link copied to clipboard
Returns the PotionEffectType of this effect.
Link copied to clipboard