|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<EntityEffect>
org.bukkit.EntityEffect
public 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 |
|---|
public static final EntityEffect HURT
public static final EntityEffect DEATH
public static final EntityEffect WOLF_SMOKE
public static final EntityEffect WOLF_HEARTS
public static final EntityEffect WOLF_SHAKE
public static final EntityEffect SHEEP_EAT
| Method Detail |
|---|
public static final EntityEffect[] values()
for(EntityEffect c : EntityEffect.values())
System.out.println(c);
public static EntityEffect valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified namepublic byte getData()
public static EntityEffect getByData(byte data)
data - Data value to fetch
EntityEffect representing the given value, or null if it doesn't exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||