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 ConstantsEnum ConstantDescriptionArmadillo peeks out of its shellArmor stand is hit.Colored particles from an arrow.Deprecated, for removal: This API element is subject to removal in a future version.Entity breaks item in body slot.Entity breaks item in boot slot.Entity breaks item in chestplate slot.Entity breaks item in helmet slot.Entity breaks item in legging slot.Entity breaks item in main hand.Entity breaks item in off hand.Deprecated, for removal: This API element is subject to removal in a future version.useTRUSTING_FAILED
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.split into individual effectsDolphin has been fed and is locating a structure.Deprecated, for removal: This API element is subject to removal in a future version.usePROJECTILE_CRACK
Plays an attack animation for the respective entities.Plays the entity death sound and animation.Silverfish entering block, spawner spawning.Deprecated, for removal: This API element is subject to removal in a future version.useENTITY_ATTACK
When a firework explodes.Fox chews the food in its mouth.Goat lowers its head for ramming.Goat raises its head.Guardian plays the attack sound effect.Deprecated, for removal: This API element is subject to removal in a future version.useENTITY_ATTACK
Spawns honey block fall particles at the entity's feet.Spawns honey block slide particles at the entity's feet.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.When an Iron Golem gives a rose.Iron golem puts away rose.Deprecated, for removal: This API element is subject to removal in a future version.useENTITY_ATTACK
Hearts from a breeding entity or when an Allay duplicates.Deprecated, for removal: This API element is subject to removal in a future version.raid system was overhauled in 1.20.5Shows the crack particles when a projectile hits something.Item withDataComponentTypes.DEATH_PROTECTION
prevents entity death.Rabbit jumping.Deprecated, for removal: This API element is subject to removal in a future version.useENTITY_ATTACK
Ravager has been stunned for 40 ticks.Resets a spawner minecart's delay to 200.A creaking transient shaking when being hit.Deprecated, for removal: This API element is subject to removal in a future version.split into individual effectsPlays the sheep eating grass animation.Shield blocks attack.Shield breaks.Plays sniffer digging sound.Deprecated, for removal: This API element is subject to removal in a future version.usePROJECTILE_CRACK
Spawns death smoke particles.Resets squid rotation.Entity swaps the items in their hand and offhandThe smoke when taming an entity fails.The hearts when taming an entity succeeds.Entity teleported as a result of chorus fruit or as an enderman.Deprecated, for removal: This API element is subject to removal in a future version.Causes the TNT minecart to ignite, does not play the ignition soundDeprecated, for removal: This API element is subject to removal in a future version.Ocelot trusting failed.Ocelot trusting succeeded.When a villager is angry.Happy particles from a villager.Hearts from a villager.Villager splashes particles during a raid.Deprecated, for removal: This API element is subject to removal in a future version.useENTITY_ATTACK
Warden performs sonic attack animation.Warden shakes its tendrils.Magic particles from a witch.Deprecated, for removal: This API element is subject to removal in a future version.useTAMING_SUCCEEDED
When a wolf shakes (after being wet).Stops a wolf that is currently shaking.Deprecated, for removal: This API element is subject to removal in a future version.useTAMING_FAILED
Deprecated, for removal: This API element is subject to removal in a future version.useENTITY_ATTACK
Plays the sound when a zombie villager is cured. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.an entity effect can apply to multiple superclasses, seegetApplicableClasses()
Gets the entity superclasses which this entity effect is applicable to.byte
getData()
Gets the data value of this entity effect, may not be unique.boolean
isApplicableTo
(@NotNull Class<? extends Entity> clazz) Checks if this entity effect is applicable to the given entity class.boolean
isApplicableTo
(@NotNull Entity entity) Checks if this entity effect is applicable to the given entity.static 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 an arrow. -
RABBIT_JUMP
Rabbit jumping. -
RESET_SPAWNER_MINECART_DELAY
Resets a spawner minecart's delay to 200. Does not affect actual spawning delay, only the speed at which the entity in the spawner spins. -
HURT
Deprecated, for removal: This API element is subject to removal in a future version.When mobs get hurt. -
DEATH
Deprecated, for removal: This API element is subject to removal in a future version.split into individual effectsWhen a mob dies.This will cause client-glitches!
- See Also:
-
EGG_BREAK
Deprecated, for removal: This API element is subject to removal in a future version.usePROJECTILE_CRACK
Spawns the egg breaking particles. -
SNOWBALL_BREAK
Deprecated, for removal: This API element is subject to removal in a future version.usePROJECTILE_CRACK
Spawns the snowball breaking particles. -
PROJECTILE_CRACK
Shows the crack particles when a projectile hits something. -
ENTITY_DEATH
Plays the entity death sound and animation.This will cause client-glitches!
-
FANG_ATTACK
Deprecated, for removal: This API element is subject to removal in a future version.useENTITY_ATTACK
Plays the evoker's fang attack animation. -
HOGLIN_ATTACK
Deprecated, for removal: This API element is subject to removal in a future version.useENTITY_ATTACK
Plays the hoglin attack animation. -
IRON_GOLEN_ATTACK
Deprecated, for removal: This API element is subject to removal in a future version.useENTITY_ATTACK
Plays the iron golem attack animation. -
RAVAGER_ATTACK
Deprecated, for removal: This API element is subject to removal in a future version.useENTITY_ATTACK
Plays the ravager attack animation. -
WARDEN_ATTACK
Deprecated, for removal: This API element is subject to removal in a future version.useENTITY_ATTACK
Plays the warden attack animation. -
ZOGLIN_ATTACK
Deprecated, for removal: This API element is subject to removal in a future version.useENTITY_ATTACK
Plays the zoglin attack animation. -
ENTITY_ATTACK
Plays an attack animation for the respective entities. -
WOLF_SMOKE
Deprecated, for removal: This API element is subject to removal in a future version.useTAMING_FAILED
The smoke when taming an entity fails. -
WOLF_HEARTS
Deprecated, for removal: This API element is subject to removal in a future version.useTAMING_SUCCEEDED
The hearts when taming an entity succeeds. -
TAMING_FAILED
The smoke when taming an entity fails. -
TAMING_SUCCEEDED
The hearts when taming an entity succeeds. -
WOLF_SHAKE
When a wolf shakes (after being wet).- See Also:
-
SHEEP_EAT
Deprecated, for removal: This API element is subject to removal in a future version.split into individual effectsWhen an entity eats a LONG_GRASS block.- See Also:
-
SHEEP_EAT_GRASS
Plays the sheep eating grass animation. -
TNT_MINECART_IGNITE
Causes the TNT minecart to ignite, does not play the ignition soundThis will cause client-glitches!
-
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
Plays the sound when a zombie villager is cured. -
FIREWORK_EXPLODE
When a firework explodes. -
LOVE_HEARTS
Hearts from a breeding entity or when an Allay duplicates. -
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
Deprecated, for removal: This API element is subject to removal in a future version.Entity hurt by thorns attack. -
IRON_GOLEM_SHEATH
Iron golem puts away rose. -
TOTEM_RESURRECT
Deprecated, for removal: This API element is subject to removal in a future version.Totem prevents entity death. -
PROTECTED_FROM_DEATH
Item withDataComponentTypes.DEATH_PROTECTION
prevents entity death. For player, the item selected will be shown for a moment on the screen, if the item is not found a totem will appear. -
HURT_DROWN
Deprecated, for removal: This API element is subject to removal in a future version.Entity hurt due to drowning damage. -
HURT_EXPLOSION
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.useTRUSTING_FAILED
Cat taming failed. -
CAT_TAME_SUCCESS
Deprecated, for removal: This API element is subject to removal in a future version.Cat taming succeeded. -
TRUSTING_FAILED
Ocelot trusting failed. -
TRUSTING_SUCCEEDED
Ocelot trusting succeeded. -
VILLAGER_SPLASH
Villager splashes particles during a raid. -
PLAYER_BAD_OMEN_RAID
Deprecated, for removal: This API element is subject to removal in a future version.raid system was overhauled in 1.20.5Player's bad omen effect removed to start or increase raid difficult. -
HURT_BERRY_BUSH
Deprecated, for removal: This API element is subject to removal in a future version.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.- See Also:
-
BREAK_EQUIPMENT_OFF_HAND
Entity breaks item in off hand.- See Also:
-
BREAK_EQUIPMENT_HELMET
Entity breaks item in helmet slot.- See Also:
-
BREAK_EQUIPMENT_CHESTPLATE
Entity breaks item in chestplate slot.- See Also:
-
BREAK_EQUIPMENT_LEGGINGS
Entity breaks item in legging slot.- See Also:
-
BREAK_EQUIPMENT_BOOTS
Entity breaks item in boot slot.- See Also:
-
HONEY_BLOCK_SLIDE_PARTICLES
Spawns honey block slide particles at the entity's feet. -
HONEY_BLOCK_FALL_PARTICLES
Spawns honey block fall particles at the entity's feet. -
SWAP_HAND_ITEMS
Entity swaps the items in their hand and offhand -
WOLF_SHAKE_STOP
Stops a wolf that is currently shaking.- See Also:
-
GOAT_LOWER_HEAD
Goat lowers its head for ramming.- See Also:
-
GOAT_RAISE_HEAD
Goat raises its head.- See Also:
-
SPAWN_DEATH_SMOKE
Spawns death smoke particles. -
WARDEN_TENDRIL_SHAKE
Warden shakes its tendrils. -
WARDEN_SONIC_ATTACK
Warden performs sonic attack animation.
Does not play the sound or fire the beam. -
SNIFFER_DIG
Plays sniffer digging sound.
Sniffer must have a target and be inSniffer.State.SEARCHING
orSniffer.State.DIGGING
. -
ARMADILLO_PEEK
Armadillo peeks out of its shell -
BODY_BREAK
Deprecated, for removal: This API element is subject to removal in a future version.EquipmentSlot.BODY
armor piece breaks. -
BREAK_EQUIPMENT_BODY
Entity breaks item in body slot.- See Also:
-
SHAKE
A creaking transient shaking when being hit. Does not apply to plain creaking entities as they are not invulnerable like the transient ones spawned by the creaking heart.
-
-
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
Gets the data value of this entity effect, may not be unique.- Returns:
- the data value
-
getApplicable
Deprecated.an entity effect can apply to multiple superclasses, seegetApplicableClasses()
Gets entity superclass which this entity effect is applicable to.- Returns:
- applicable class
-
getApplicableClasses
Gets the entity superclasses which this entity effect is applicable to.- Returns:
- the applicable classes
-
isApplicableTo
Checks if this entity effect is applicable to the given entity.- Parameters:
entity
- the entity to check- Returns:
true
if applicable
-
isApplicableTo
Checks if this entity effect is applicable to the given entity class.- Parameters:
clazz
- the entity class to check- Returns:
true
if applicable
-
BREAK_EQUIPMENT_BODY