Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.EntityEffect Enum Reference

Public Member Functions

 EntityEffect (final int data)
 
byte getData ()
 

Static Public Member Functions

static EntityEffect getByData (final byte data)
 
 [static initializer]
 

Public Attributes

 HURT =(2)
 
 DEATH =(3)
 
 WOLF_SMOKE =(6)
 
 WOLF_HEARTS =(7)
 
 WOLF_SHAKE =(8)
 
 SHEEP_EAT =(10)
 
 IRON_GOLEM_ROSE =(11)
 
 VILLAGER_HEART =(12)
 
 VILLAGER_ANGRY =(13)
 
 VILLAGER_HAPPY =(14)
 
 WITCH_MAGIC =(15)
 
 ZOMBIE_TRANSFORM =(16)
 
 FIREWORK_EXPLODE =(17)
 

Detailed Description

A list of all Effects that can happen to entities.

Definition at line 10 of file EntityEffect.java.

Member Function Documentation

static EntityEffect org.bukkit.EntityEffect.getByData ( final byte  data)
static

Gets the EntityEffect with the given data value

Parameters
dataData value to fetch
Returns
The EntityEffect representing the given value, or null if it doesn't exist
Deprecated:
Magic value

Definition at line 126 of file EntityEffect.java.

126  {
127  return BY_DATA.get(data);
128  }
byte org.bukkit.EntityEffect.getData ( )

Gets the data value of this EntityEffect

Returns
The data value
Deprecated:
Magic value

Definition at line 113 of file EntityEffect.java.

113  {
114  return data;
115  }

Member Data Documentation

org.bukkit.EntityEffect.DEATH =(3)

When a mob dies.

This will cause client-glitches!

Definition at line 22 of file EntityEffect.java.

org.bukkit.EntityEffect.FIREWORK_EXPLODE =(17)

When a firework explodes.

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

Definition at line 97 of file EntityEffect.java.

org.bukkit.EntityEffect.HURT =(2)

When mobs get hurt.

Definition at line 15 of file EntityEffect.java.

org.bukkit.EntityEffect.IRON_GOLEM_ROSE =(11)

When an Iron Golem gives a rose.

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

Definition at line 55 of file EntityEffect.java.

org.bukkit.EntityEffect.SHEEP_EAT =(10)

When a sheep eats a LONG_GRASS block.

Definition at line 48 of file EntityEffect.java.

org.bukkit.EntityEffect.VILLAGER_ANGRY =(13)

When a villager is angry.

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

Definition at line 69 of file EntityEffect.java.

org.bukkit.EntityEffect.VILLAGER_HAPPY =(14)

Happy particles from a villager.

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

Definition at line 76 of file EntityEffect.java.

org.bukkit.EntityEffect.VILLAGER_HEART =(12)

Hearts from a villager.

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

Definition at line 62 of file EntityEffect.java.

org.bukkit.EntityEffect.WITCH_MAGIC =(15)

Magic particles from a witch.

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

Definition at line 83 of file EntityEffect.java.

org.bukkit.EntityEffect.WOLF_HEARTS =(7)

The hearts when taming a wolf succeeds.

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

Definition at line 36 of file EntityEffect.java.

org.bukkit.EntityEffect.WOLF_SHAKE =(8)

When a wolf shakes (after being wet).

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

Definition at line 43 of file EntityEffect.java.

org.bukkit.EntityEffect.WOLF_SMOKE =(6)

The smoke when taming a wolf fails.

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

Definition at line 29 of file EntityEffect.java.

org.bukkit.EntityEffect.ZOMBIE_TRANSFORM =(16)

When a zombie transforms into a villager by shaking violently.

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

Definition at line 90 of file EntityEffect.java.


The documentation for this enum was generated from the following file: