public enum EntityEffect extends Enum<EntityEffect>
Enum Constant and Description |
---|
ARMOR_STAND_HIT
Armor stand is hit.
|
ARROW_PARTICLES
Colored particles from a tipped arrow.
|
DEATH
Deprecated.
although this effect may trigger other events on non-living
entities, it's only supported usage is on living ones.
|
ENTITY_POOF
Silverfish entering block, spawner spawning.
|
FIREWORK_EXPLODE
When a firework explodes.
|
GUARDIAN_TARGET
Guardian sets laser target.
|
HURT
When mobs get hurt.
|
HURT_DROWN
Entity hurt due to drowning damage.
|
HURT_EXPLOSION
Entity hurt due to explosion damage.
|
IRON_GOLEM_ROSE
When an Iron Golem gives a rose.
|
IRON_GOLEM_SHEATH
Iron golem puts away rose.
|
LOVE_HEARTS
Hearts from a breeding entity.
|
RABBIT_JUMP
Rabbit jumping.
|
SHEEP_EAT
Deprecated.
although this effect may trigger other events on non-living
entities, it's only supported usage is on living ones.
|
SHIELD_BLOCK
Shield blocks attack.
|
SHIELD_BREAK
Shield breaks.
|
SQUID_ROTATE
Resets squid rotation.
|
THORNS_HURT
Entity hurt by thorns attack.
|
TOTEM_RESURRECT
Totem prevents entity death.
|
VILLAGER_ANGRY
When a villager is angry.
|
VILLAGER_HAPPY
Happy particles from a villager.
|
VILLAGER_HEART
Hearts from a villager.
|
WITCH_MAGIC
Magic particles from a witch.
|
WOLF_HEARTS
The hearts when taming a wolf succeeds.
|
WOLF_SHAKE
When a wolf shakes (after being wet).
|
WOLF_SMOKE
The smoke when taming a wolf fails.
|
ZOMBIE_TRANSFORM
When 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 © 2021. All rights reserved.