public enum EntityEffect extends Enum<EntityEffect>
| Enum Constant and Description | 
|---|
| ARMOR_STAND_HITArmor stand is hit. | 
| ARROW_PARTICLESColored particles from a tipped arrow. | 
| DEATHDeprecated. 
 although this effect may trigger other events on non-living
 entities, it's only supported usage is on living ones. | 
| ENTITY_POOFSilverfish entering block, spawner spawning. | 
| FIREWORK_EXPLODEWhen a firework explodes. | 
| GUARDIAN_TARGETGuardian sets laser target. | 
| HURTWhen mobs get hurt. | 
| HURT_DROWNEntity hurt due to drowning damage. | 
| HURT_EXPLOSIONEntity hurt due to explosion damage. | 
| IRON_GOLEM_ROSEWhen an Iron Golem gives a rose. | 
| IRON_GOLEM_SHEATHIron golem puts away rose. | 
| LOVE_HEARTSHearts from a breeding entity. | 
| RABBIT_JUMPRabbit jumping. | 
| SHEEP_EATDeprecated. 
 although this effect may trigger other events on non-living
 entities, it's only supported usage is on living ones. | 
| SHIELD_BLOCKShield blocks attack. | 
| SHIELD_BREAKShield breaks. | 
| SQUID_ROTATEResets squid rotation. | 
| THORNS_HURTEntity hurt by thorns attack. | 
| TOTEM_RESURRECTTotem prevents entity death. | 
| VILLAGER_ANGRYWhen a villager is angry. | 
| VILLAGER_HAPPYHappy particles from a villager. | 
| VILLAGER_HEARTHearts from a villager. | 
| WITCH_MAGICMagic particles from a witch. | 
| WOLF_HEARTSThe hearts when taming a wolf succeeds. | 
| WOLF_SHAKEWhen a wolf shakes (after being wet). | 
| WOLF_SMOKEThe smoke when taming a wolf fails. | 
| ZOMBIE_TRANSFORMWhen a zombie transforms into a villager by shaking violently. | 
| Modifier and Type | Method and Description | 
|---|---|
| Class<? extends Entity> | getApplicable()Gets entity superclass which this affect is applicable to. | 
| static EntityEffect | getByData(byte data)Deprecated. 
 Magic value | 
| byte | getData()Deprecated. 
 Magic value | 
| static EntityEffect | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static EntityEffect[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final EntityEffect ARROW_PARTICLES
public static final EntityEffect RABBIT_JUMP
public static final EntityEffect HURT
@Deprecated public static final EntityEffect DEATH
This will cause client-glitches!
public static final EntityEffect WOLF_SMOKE
public static final EntityEffect WOLF_HEARTS
public static final EntityEffect WOLF_SHAKE
@Deprecated public static final EntityEffect SHEEP_EAT
public static final EntityEffect IRON_GOLEM_ROSE
public static final EntityEffect VILLAGER_HEART
public static final EntityEffect VILLAGER_ANGRY
public static final EntityEffect VILLAGER_HAPPY
public static final EntityEffect WITCH_MAGIC
public static final EntityEffect ZOMBIE_TRANSFORM
public static final EntityEffect FIREWORK_EXPLODE
public static final EntityEffect LOVE_HEARTS
public static final EntityEffect SQUID_ROTATE
public static final EntityEffect ENTITY_POOF
public static final EntityEffect GUARDIAN_TARGET
public static final EntityEffect SHIELD_BLOCK
public static final EntityEffect SHIELD_BREAK
public static final EntityEffect ARMOR_STAND_HIT
public static final EntityEffect THORNS_HURT
public static final EntityEffect IRON_GOLEM_SHEATH
public static final EntityEffect TOTEM_RESURRECT
public static final EntityEffect HURT_DROWN
public static final EntityEffect HURT_EXPLOSION
public static EntityEffect[] values()
for (EntityEffect c : EntityEffect.values()) System.out.println(c);
public static EntityEffect valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Deprecated public byte getData()
public Class<? extends Entity> getApplicable()
@Deprecated public static EntityEffect getByData(byte data)
data - Data value to fetchEntityEffect representing the given value, or null
     if it doesn't existCopyright © 2022. All rights reserved.