public static enum EntityTransformEvent.TransformReason extends Enum<EntityTransformEvent.TransformReason>
Enum Constant and Description |
---|
CURED
When a zombie gets cured and a villager is spawned.
|
DROWNED
When a entity drowns in water and a new entity spawns.
|
INFECTION
When a villager gets infected and a zombie villager spawns.
|
LIGHTNING
When lightning strikes a entity.
|
SHEARED
When a mooshroom (or MUSHROOM_COW) is sheared and a cow spawns.
|
SPLIT
When a slime splits into multiple smaller slimes.
|
Modifier and Type | Method and Description |
---|---|
static EntityTransformEvent.TransformReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntityTransformEvent.TransformReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityTransformEvent.TransformReason CURED
public static final EntityTransformEvent.TransformReason INFECTION
public static final EntityTransformEvent.TransformReason DROWNED
public static final EntityTransformEvent.TransformReason SHEARED
public static final EntityTransformEvent.TransformReason LIGHTNING
public static final EntityTransformEvent.TransformReason SPLIT
public static EntityTransformEvent.TransformReason[] values()
for (EntityTransformEvent.TransformReason c : EntityTransformEvent.TransformReason.values()) System.out.println(c);
public static EntityTransformEvent.TransformReason 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 nullCopyright © 2022. All rights reserved.