Package org.bukkit

Enum EntityEffect

java.lang.Object
java.lang.Enum<EntityEffect>
org.bukkit.EntityEffect
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EntityEffect>, java.lang.constant.Constable

public enum EntityEffect
extends java.lang.Enum<EntityEffect>
A list of all Effects that can happen to entities.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    DEATH
    When a mob dies.
    FIREWORK_EXPLODE
    When a firework explodes.
    HURT
    When mobs get hurt.
    IRON_GOLEM_ROSE
    When an Iron Golem gives a rose.
    SHEEP_EAT
    When a sheep eats a LONG_GRASS block.
    VILLAGER_ANGRY
    When a villager is angry.
    VILLAGER_HAPPY
    Happy particles from a villager.
    VILLAGER_HEART
    Hearts from a villager.
    WITCH_MAGIC
    Magic particles from a witch.
    WOLF_HEARTS
    The hearts when taming a wolf succeeds.
    WOLF_SHAKE
    When a wolf shakes (after being wet).
    WOLF_SMOKE
    The smoke when taming a wolf fails.
    ZOMBIE_TRANSFORM
    When a zombie transforms into a villager by shaking violently.
  • Method Summary

    Modifier and Type Method Description
    static EntityEffect getByData​(byte data)
    Deprecated.
    Magic value
    byte getData()
    Deprecated.
    Magic value
    static EntityEffect valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static EntityEffect[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • HURT

      public static final EntityEffect HURT
      When mobs get hurt.
    • DEATH

      public static final EntityEffect DEATH
      When a mob dies.

      This will cause client-glitches!

    • WOLF_SMOKE

      public static final EntityEffect WOLF_SMOKE
      The smoke when taming a wolf fails.

      Without client-mods this will be ignored if the entity is not a wolf.

    • WOLF_HEARTS

      public static final EntityEffect WOLF_HEARTS
      The hearts when taming a wolf succeeds.

      Without client-mods this will be ignored if the entity is not a wolf.

    • WOLF_SHAKE

      public static final EntityEffect WOLF_SHAKE
      When a wolf shakes (after being wet).

      Without client-mods this will be ignored if the entity is not a wolf.

    • SHEEP_EAT

      public static final EntityEffect SHEEP_EAT
      When a sheep eats a LONG_GRASS block.
    • IRON_GOLEM_ROSE

      public static final EntityEffect IRON_GOLEM_ROSE
      When an Iron Golem gives a rose.

      This will not play an effect if the entity is not an iron golem.

    • VILLAGER_HEART

      public static final EntityEffect VILLAGER_HEART
      Hearts from a villager.

      This will not play an effect if the entity is not a villager.

    • VILLAGER_ANGRY

      public static final EntityEffect VILLAGER_ANGRY
      When a villager is angry.

      This will not play an effect if the entity is not a villager.

    • VILLAGER_HAPPY

      public static final EntityEffect VILLAGER_HAPPY
      Happy particles from a villager.

      This will not play an effect if the entity is not a villager.

    • WITCH_MAGIC

      public static final EntityEffect WITCH_MAGIC
      Magic particles from a witch.

      This will not play an effect if the entity is not a witch.

    • ZOMBIE_TRANSFORM

      public static final EntityEffect ZOMBIE_TRANSFORM
      When a zombie transforms into a villager by shaking violently.

      This will not play an effect if the entity is not a zombie.

    • FIREWORK_EXPLODE

      public static final EntityEffect FIREWORK_EXPLODE
      When a firework explodes.

      This will not play an effect if the entity is not a firework.

  • Method Details

    • values

      public static EntityEffect[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EntityEffect valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • getData

      @Deprecated public byte getData()
      Deprecated.
      Magic value
      Gets the data value of this EntityEffect
      Returns:
      The data value
    • getByData

      @Deprecated public static EntityEffect getByData​(byte data)
      Deprecated.
      Magic value
      Gets the EntityEffect with the given data value
      Parameters:
      data - Data value to fetch
      Returns:
      The EntityEffect representing the given value, or null if it doesn't exist