org.bukkit
Enum EntityEffect

java.lang.Object
  extended by java.lang.Enum<EntityEffect>
      extended by org.bukkit.EntityEffect
All Implemented Interfaces:
Serializable, Comparable<EntityEffect>

public enum EntityEffect
extends Enum<EntityEffect>

A list of all Effects that can happen to entities.


Enum Constant Summary
DEATH
          When a mob dies.
HURT
          When mobs get hurt.
SHEEP_EAT
          When a sheep eats a LONG_GRASS block.
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.
 
Method Summary
static EntityEffect getByData(byte data)
          Gets the EntityEffect with the given data value
 byte getData()
          Gets the data value of this EntityEffect
static EntityEffect valueOf(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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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.

Method Detail

values

public static final EntityEffect[] values()
Returns an array containing the constants of this enum type, in the order they're 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're 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

getData

public byte getData()
Gets the data value of this EntityEffect

Returns:
The data value

getByData

public static EntityEffect getByData(byte data)
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


Copyright © 2013. All Rights Reserved.