Package org.bukkit

Enum EntityEffect

    • Enum Constant Detail

      • ARROW_PARTICLES

        public static final EntityEffect ARROW_PARTICLES
        Colored particles from a tipped arrow.
      • RABBIT_JUMP

        public static final EntityEffect RABBIT_JUMP
        Rabbit jumping.
      • HURT

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

        @Deprecated
        public static final EntityEffect DEATH
        Deprecated.
        although this effect may trigger other events on non-living entities, it's only supported usage is on living ones.
        When a mob dies.

        This will cause client-glitches!

      • WOLF_SMOKE

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

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

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

        @Deprecated
        public static final EntityEffect SHEEP_EAT
        Deprecated.
        although this effect may trigger other events on non-living entities, it's only supported usage is on living ones.
        When an entity eats a LONG_GRASS block.
      • IRON_GOLEM_ROSE

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

        public static final EntityEffect VILLAGER_HEART
        Hearts from a villager.
      • VILLAGER_ANGRY

        public static final EntityEffect VILLAGER_ANGRY
        When a villager is angry.
      • VILLAGER_HAPPY

        public static final EntityEffect VILLAGER_HAPPY
        Happy particles from a villager.
      • WITCH_MAGIC

        public static final EntityEffect WITCH_MAGIC
        Magic particles from a witch.
      • ZOMBIE_TRANSFORM

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

        public static final EntityEffect FIREWORK_EXPLODE
        When a firework explodes.
      • LOVE_HEARTS

        public static final EntityEffect LOVE_HEARTS
        Hearts from a breeding entity.
      • SQUID_ROTATE

        public static final EntityEffect SQUID_ROTATE
        Resets squid rotation.
      • ENTITY_POOF

        public static final EntityEffect ENTITY_POOF
        Silverfish entering block, spawner spawning.
      • GUARDIAN_TARGET

        public static final EntityEffect GUARDIAN_TARGET
        Guardian sets laser target.
      • SHIELD_BLOCK

        public static final EntityEffect SHIELD_BLOCK
        Shield blocks attack.
      • SHIELD_BREAK

        public static final EntityEffect SHIELD_BREAK
        Shield breaks.
      • ARMOR_STAND_HIT

        public static final EntityEffect ARMOR_STAND_HIT
        Armor stand is hit.
      • THORNS_HURT

        public static final EntityEffect THORNS_HURT
        Entity hurt by thorns attack.
      • IRON_GOLEM_SHEATH

        public static final EntityEffect IRON_GOLEM_SHEATH
        Iron golem puts away rose.
      • TOTEM_RESURRECT

        public static final EntityEffect TOTEM_RESURRECT
        Totem prevents entity death.
      • HURT_DROWN

        public static final EntityEffect HURT_DROWN
        Entity hurt due to drowning damage.
      • HURT_EXPLOSION

        public static final EntityEffect HURT_EXPLOSION
        Entity hurt due to explosion damage.
    • Method Detail

      • values

        public static EntityEffect[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EntityEffect c : EntityEffect.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EntityEffect valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        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
      • getApplicable

        @NotNull
        public Class<? extends Entity> getApplicable()
        Gets entity superclass which this affect is applicable to.
        Returns:
        applicable class
      • getByData

        @Deprecated
        @Nullable
        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