Package org.bukkit
Enum Class EntityEffect
- All Implemented Interfaces:
Serializable
,Comparable<EntityEffect>
,Constable
A list of all Effects that can happen to entities.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionArmor stand is hit.Colored particles from a tipped arrow.Entity breaks item in boot slotEntity breaks item in chestplate slotEntity breaks item in helmet slotEntity breaks item in legging slotEntity breaks item in main handEntity breaks item in off handCat taming failed.Cat taming succeeded.Deprecated.although this effect may trigger other events on non-living entities, it's only supported usage is on living ones.Dolphin has been fed and is locating a structure.Silverfish entering block, spawner spawning.When a firework explodes.Fox chews the food in its mouthGuardian plays the attack sound effect.When mobs get hurt.Entity hurt due to berry bush.Entity hurt due to drowning damage.Entity hurt due to explosion damage.When an Iron Golem gives a rose.Iron golem puts away rose.Hearts from a breeding entity.Player's bad omen effect removed to start or increase raid difficult.Rabbit jumping.Ravager has been stunned for 40 ticks.Deprecated.although this effect may trigger other events on non-living entities, it's only supported usage is on living ones.Shield blocks attack.Shield breaks.Resets squid rotation.Entity teleported as a result of chorus fruit or as an endermanEntity hurt by thorns attack.Totem prevents entity death.When a villager is angry.Happy particles from a villager.Hearts from a villager.Villager splashes particles during a raid.Magic particles from a witch.The hearts when taming a wolf succeeds.When a wolf shakes (after being wet).The smoke when taming a wolf fails.When a zombie transforms into a villager by shaking violently. -
Method Summary
Modifier and TypeMethodDescriptionGets entity superclass which this affect is applicable to.byte
getData()
Deprecated.Magic valuestatic EntityEffect
Returns the enum constant of this class with the specified name.static EntityEffect[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARROW_PARTICLES
Colored particles from a tipped arrow. -
RABBIT_JUMP
Rabbit jumping. -
HURT
When mobs get hurt. -
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
The smoke when taming a wolf fails. -
WOLF_HEARTS
The hearts when taming a wolf succeeds. -
WOLF_SHAKE
When a wolf shakes (after being wet). -
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
When an Iron Golem gives a rose. -
VILLAGER_HEART
Hearts from a villager. -
VILLAGER_ANGRY
When a villager is angry. -
VILLAGER_HAPPY
Happy particles from a villager. -
WITCH_MAGIC
Magic particles from a witch. -
ZOMBIE_TRANSFORM
When a zombie transforms into a villager by shaking violently. -
FIREWORK_EXPLODE
When a firework explodes. -
LOVE_HEARTS
Hearts from a breeding entity. -
SQUID_ROTATE
Resets squid rotation. -
ENTITY_POOF
Silverfish entering block, spawner spawning. -
GUARDIAN_TARGET
Guardian plays the attack sound effect. -
SHIELD_BLOCK
Shield blocks attack. -
SHIELD_BREAK
Shield breaks. -
ARMOR_STAND_HIT
Armor stand is hit. -
THORNS_HURT
Entity hurt by thorns attack. -
IRON_GOLEM_SHEATH
Iron golem puts away rose. -
TOTEM_RESURRECT
Totem prevents entity death. -
HURT_DROWN
Entity hurt due to drowning damage. -
HURT_EXPLOSION
Entity hurt due to explosion damage. -
DOLPHIN_FED
Dolphin has been fed and is locating a structure. -
RAVAGER_STUNNED
Ravager has been stunned for 40 ticks. -
CAT_TAME_FAIL
Cat taming failed. -
CAT_TAME_SUCCESS
Cat taming succeeded. -
VILLAGER_SPLASH
Villager splashes particles during a raid. -
PLAYER_BAD_OMEN_RAID
Player's bad omen effect removed to start or increase raid difficult. -
HURT_BERRY_BUSH
Entity hurt due to berry bush. Prickly! -
FOX_CHEW
Fox chews the food in its mouth -
TELEPORT_ENDER
Entity teleported as a result of chorus fruit or as an enderman -
BREAK_EQUIPMENT_MAIN_HAND
Entity breaks item in main hand -
BREAK_EQUIPMENT_OFF_HAND
Entity breaks item in off hand -
BREAK_EQUIPMENT_HELMET
Entity breaks item in helmet slot -
BREAK_EQUIPMENT_CHESTPLATE
Entity breaks item in chestplate slot -
BREAK_EQUIPMENT_LEGGINGS
Entity breaks item in legging slot -
BREAK_EQUIPMENT_BOOTS
Entity breaks item in boot slot
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getData
Deprecated.Magic valueGets the data value of this EntityEffect- Returns:
- The data value
-
getApplicable
Gets entity superclass which this affect is applicable to.- Returns:
- applicable class
-