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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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.split into individual effectsDolphin has been fed and is locating a structure.Spawns the egg breaking particlesPlays the entity death sound and animationSilverfish entering block, spawner spawning.Plays the fang attack animationWhen a firework explodes.Fox chews the food in its mouthGoat lowers its head for rammingGoat raises its headGuardian plays the attack sound effect.Plays the hoglin attack animationSpawns honey block fall particles at the entity's feetSpawns honey block slide particles at the entity's feetDeprecated.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.Plays the iron golem attack animationHearts from a breeding entity.Player's bad omen effect removed to start or increase raid difficult.Rabbit jumping.Plays the ravager attack animationRavager has been stunned for 40 ticks.Resets a spawner minecart's delay to 200.Deprecated.split into individual effectsPlays the sheep eating grass animationShield blocks attack.Shield breaks.Plays sniffer digging sound
 Sniffer must have a target and be inSniffer.State.SEARCHINGorSniffer.State.DIGGINGSpawns the snowball breaking particlesSpawns death smoke particlesResets squid rotation.Entity swaps the items in their hand and offhandEntity teleported as a result of chorus fruit or as an endermanEntity hurt by thorns attack.Causes the TNT minecart to ignite, does not play the ignition soundTotem prevents entity death.When a villager is angry.Happy particles from a villager.Hearts from a villager.Villager splashes particles during a raid.Plays the warden attack animationWarden performs sonic attack animation
 Does not play the sound or fire the beamWarden shakes its tendrilsMagic particles from a witch.The hearts when taming an entity succeeds.When a wolf shakes (after being wet).Stops a wolf that is currently shakingThe smoke when taming an entity fails.Plays the zoglin attack animationWhen a zombie transforms into a villager by shaking violently.
- 
Method SummaryModifier and TypeMethodDescriptionGets entity superclass which this affect is applicable to.bytegetData()Deprecated.Magic valuebooleanisApplicableTo(Class<? extends Entity> clazz) Checks if this effect is applicable to the given entity class.booleanisApplicableTo(Entity entity) Checks if this effect is applicable to the given entity.static EntityEffectReturns 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_PARTICLESColored particles from a tipped arrow.
- 
RABBIT_JUMPRabbit jumping.
- 
RESET_SPAWNER_MINECART_DELAYResets a spawner minecart's delay to 200. Does not effect actual spawning delay, only the speed at which the entity in the spawner spins
- 
HURTDeprecated.When mobs get hurt.
- 
DEATHDeprecated.split into individual effectsWhen a mob dies.This will cause client-glitches! - See Also:
 
- 
EGG_BREAKSpawns the egg breaking particles
- 
SNOWBALL_BREAKSpawns the snowball breaking particles
- 
ENTITY_DEATHPlays the entity death sound and animationThis will cause client-glitches! 
- 
FANG_ATTACKPlays the fang attack animation
- 
HOGLIN_ATTACKPlays the hoglin attack animation
- 
IRON_GOLEN_ATTACKPlays the iron golem attack animation
- 
RAVAGER_ATTACKPlays the ravager attack animation
- 
WARDEN_ATTACKPlays the warden attack animation
- 
ZOGLIN_ATTACKPlays the zoglin attack animation
- 
WOLF_SMOKEThe smoke when taming an entity fails.
- 
WOLF_HEARTSThe hearts when taming an entity succeeds.
- 
WOLF_SHAKEWhen a wolf shakes (after being wet).- See Also:
 
- 
SHEEP_EATDeprecated.split into individual effectsWhen an entity eats a LONG_GRASS block.- See Also:
 
- 
SHEEP_EAT_GRASSPlays the sheep eating grass animation
- 
TNT_MINECART_IGNITECauses the TNT minecart to ignite, does not play the ignition soundThis will cause client-glitches! 
- 
IRON_GOLEM_ROSEWhen an Iron Golem gives a rose.
- 
VILLAGER_HEARTHearts from a villager.
- 
VILLAGER_ANGRYWhen a villager is angry.
- 
VILLAGER_HAPPYHappy particles from a villager.
- 
WITCH_MAGICMagic particles from a witch.
- 
ZOMBIE_TRANSFORMWhen a zombie transforms into a villager by shaking violently.
- 
FIREWORK_EXPLODEWhen a firework explodes.
- 
LOVE_HEARTSHearts from a breeding entity.
- 
SQUID_ROTATEResets squid rotation.
- 
ENTITY_POOFSilverfish entering block, spawner spawning.
- 
GUARDIAN_TARGETGuardian plays the attack sound effect.
- 
SHIELD_BLOCKShield blocks attack.
- 
SHIELD_BREAKShield breaks.
- 
ARMOR_STAND_HITArmor stand is hit.
- 
THORNS_HURTEntity hurt by thorns attack.
- 
IRON_GOLEM_SHEATHIron golem puts away rose.
- 
TOTEM_RESURRECTTotem prevents entity death.
- 
HURT_DROWNEntity hurt due to drowning damage.
- 
HURT_EXPLOSIONEntity hurt due to explosion damage.
- 
DOLPHIN_FEDDolphin has been fed and is locating a structure.
- 
RAVAGER_STUNNEDRavager has been stunned for 40 ticks.
- 
CAT_TAME_FAILCat taming failed.
- 
CAT_TAME_SUCCESSCat taming succeeded.
- 
VILLAGER_SPLASHVillager splashes particles during a raid.
- 
PLAYER_BAD_OMEN_RAIDPlayer's bad omen effect removed to start or increase raid difficult.
- 
HURT_BERRY_BUSHEntity hurt due to berry bush. Prickly!
- 
FOX_CHEWFox chews the food in its mouth
- 
TELEPORT_ENDEREntity teleported as a result of chorus fruit or as an enderman
- 
BREAK_EQUIPMENT_MAIN_HANDEntity breaks item in main hand
- 
BREAK_EQUIPMENT_OFF_HANDEntity breaks item in off hand
- 
BREAK_EQUIPMENT_HELMETEntity breaks item in helmet slot
- 
BREAK_EQUIPMENT_CHESTPLATEEntity breaks item in chestplate slot
- 
BREAK_EQUIPMENT_LEGGINGSEntity breaks item in legging slot
- 
BREAK_EQUIPMENT_BOOTSEntity breaks item in boot slot
- 
HONEY_BLOCK_SLIDE_PARTICLESSpawns honey block slide particles at the entity's feet
- 
HONEY_BLOCK_FALL_PARTICLESSpawns honey block fall particles at the entity's feet
- 
SWAP_HAND_ITEMSEntity swaps the items in their hand and offhand
- 
WOLF_SHAKE_STOPStops a wolf that is currently shaking- See Also:
 
- 
GOAT_LOWER_HEADGoat lowers its head for ramming- See Also:
 
- 
GOAT_RAISE_HEADGoat raises its head- See Also:
 
- 
SPAWN_DEATH_SMOKESpawns death smoke particles
- 
WARDEN_TENDRIL_SHAKEWarden shakes its tendrils
- 
WARDEN_SONIC_ATTACKWarden performs sonic attack animation
 Does not play the sound or fire the beam
- 
SNIFFER_DIGPlays sniffer digging sound
 Sniffer must have a target and be inSniffer.State.SEARCHINGorSniffer.State.DIGGING
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
getDataDeprecated.Magic valueGets the data value of this EntityEffect, may not be unique.- Returns:
- The data value
 
- 
getApplicableGets entity superclass which this affect is applicable to.- Returns:
- applicable class
 
- 
isApplicableToChecks if this effect is applicable to the given entity.- Parameters:
- entity- the entity to check
- Returns:
- true if applicable
 
- 
isApplicableToChecks if this effect is applicable to the given entity class.- Parameters:
- clazz- the entity class to check
- Returns:
- true if applicable
 
 
-