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 ConstantDescriptionArmadillo peeks out of its shellArmor stand is hit.Colored particles from a tipped arrow.EquipmentSlot.BODY
armor piece breaksEntity 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.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.Plays the iron golem attack animationHearts from a breeding entity.Deprecated, for removal: This API element is subject to removal in a future version.raid system was overhauled in 1.20.5Rabbit jumping.Plays the ravager attack animationRavager has been stunned for 40 ticks.Resets a spawner minecart's delay to 200.A creaking transient shaking when being hit.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.SEARCHING
orSniffer.State.DIGGING
Spawns the snowball breaking particlesSpawns death smoke particlesResets 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 endermanDeprecated, for removal: This API element is subject to removal in a future version.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.Deprecated.useTAMING_SUCCEEDED
When a wolf shakes (after being wet).Stops a wolf that is currently shakingDeprecated.useTAMING_FAILED
Plays the zoglin attack animationWhen a zombie transforms into a villager by shaking violently. -
Method Summary
Modifier and TypeMethodDescriptionGets entity superclass which this affect is applicable to.byte
getData()
Gets the data value of this EntityEffect, may not be unique.boolean
isApplicableTo
(@NotNull Class<? extends Entity> clazz) Checks if this effect is applicable to the given entity class.boolean
isApplicableTo
(@NotNull Entity entity) Checks if this 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 a tipped arrow. -
RABBIT_JUMP
Rabbit jumping. -
RESET_SPAWNER_MINECART_DELAY
Resets a spawner minecart's delay to 200. Does not effect actual spawning delay, only the speed at which the entity in the spawner spins -
HURT
Deprecated.When mobs get hurt. -
DEATH
Deprecated.split into individual effectsWhen a mob dies.This will cause client-glitches!
- See Also:
-
EGG_BREAK
Spawns the egg breaking particles -
SNOWBALL_BREAK
Spawns the snowball breaking particles -
ENTITY_DEATH
Plays the entity death sound and animationThis will cause client-glitches!
-
FANG_ATTACK
Plays the fang attack animation -
HOGLIN_ATTACK
Plays the hoglin attack animation -
IRON_GOLEN_ATTACK
Plays the iron golem attack animation -
RAVAGER_ATTACK
Plays the ravager attack animation -
WARDEN_ATTACK
Plays the warden attack animation -
ZOGLIN_ATTACK
Plays the zoglin attack animation -
WOLF_SMOKE
Deprecated.useTAMING_FAILED
The smoke when taming an entity fails. -
TAMING_FAILED
The smoke when taming an entity fails. -
TAMING_SUCCEEDED
The hearts when taming an entity succeeds. -
WOLF_HEARTS
Deprecated.useTAMING_SUCCEEDED
The hearts when taming an entity succeeds. -
WOLF_SHAKE
When a wolf shakes (after being wet).- See Also:
-
SHEEP_EAT
Deprecated.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
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
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
Totem prevents entity death. -
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
Cat taming failed. -
CAT_TAME_SUCCESS
Cat taming 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 -
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 -
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
EquipmentSlot.BODY
armor piece breaks -
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 EntityEffect, may not be unique.- Returns:
- The data value
- API Note:
- Internal Use Only
-
getApplicable
Gets entity superclass which this affect is applicable to.- Returns:
- applicable class
-
isApplicableTo
Checks if this effect is applicable to the given entity.- Parameters:
entity
- the entity to check- Returns:
- true if applicable
-
isApplicableTo
Checks if this effect is applicable to the given entity class.- Parameters:
clazz
- the entity class to check- Returns:
- true if applicable
-