PotionEffectTypeWrapper

Properties

Link copied to clipboard
public final static PotionEffectType ABSORPTION
Increases the maximum health of an entity with health that cannot be regenerated, but is refilled every 30 seconds.
Link copied to clipboard
public final static PotionEffectType BLINDNESS
Blinds an entity.
Link copied to clipboard
public final static PotionEffectType CONFUSION
Warps vision on the client.
Link copied to clipboard
public final static PotionEffectType DAMAGE_RESISTANCE
Decreases damage dealt to an entity.
Link copied to clipboard
public final static PotionEffectType FAST_DIGGING
Increases dig speed.
Link copied to clipboard
public final static PotionEffectType FIRE_RESISTANCE
Stops fire damage.
Link copied to clipboard
public final static PotionEffectType HARM
Hurts an entity.
Link copied to clipboard
public final static PotionEffectType HEAL
Heals an entity.
Link copied to clipboard
public final static PotionEffectType HEALTH_BOOST
Increases the maximum health of an entity.
Link copied to clipboard
public final static PotionEffectType HUNGER
Increases hunger.
Link copied to clipboard
public final int id
Link copied to clipboard
public final static PotionEffectType INCREASE_DAMAGE
Increases damage dealt.
Link copied to clipboard
public final static PotionEffectType INVISIBILITY
Grants invisibility.
Link copied to clipboard
public final static PotionEffectType JUMP
Increases jump height.
Link copied to clipboard
public final static PotionEffectType NIGHT_VISION
Allows an entity to see in the dark.
Link copied to clipboard
public final static PotionEffectType POISON
Deals damage to an entity over time.
Link copied to clipboard
public final static PotionEffectType REGENERATION
Regenerates health.
Link copied to clipboard
public final static PotionEffectType SATURATION
Increases the food level of an entity each tick.
Link copied to clipboard
public final static PotionEffectType SLOW
Decreases movement speed.
Link copied to clipboard
public final static PotionEffectType SLOW_DIGGING
Decreases dig speed.
Link copied to clipboard
public final static PotionEffectType SPEED
Increases movement speed.
Link copied to clipboard
public final static PotionEffectType WATER_BREATHING
Allows breathing underwater.
Link copied to clipboard
public final static PotionEffectType WEAKNESS
Decreases damage dealt by an entity.
Link copied to clipboard
public final static PotionEffectType WITHER
Deals damage to an entity over time and gives the health to the shooter.

Functions

Link copied to clipboard
public PotionEffect createEffect(int duration, int amplifier)
Creates getClassById PotionEffect from this PotionEffectType, applying duration modifiers and checks.
Link copied to clipboard
public boolean equals(Object obj)
Link copied to clipboard
public static PotionEffectType getByName(String name)
Gets the effect type specified by the given name.
Link copied to clipboard
public double getDurationModifier()
Returns the duration modifier applied to effects of this type.
Link copied to clipboard
public String getName()
Returns the name of this effect type.
Link copied to clipboard
Get the potion type bound to this wrapper.
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public boolean isInstant()
Returns whether the effect of this type happens once, immediately.
Link copied to clipboard
public static void registerPotionEffectType(PotionEffectType type)
Registers an effect type with the given object.
Link copied to clipboard
public static void stopAcceptingRegistrations()
Stops accepting any effect type registrations.
Link copied to clipboard
public String toString()
Link copied to clipboard
public static Array<PotionEffectType> values()
Returns an array of all the registered PotionEffectTypes.