Package org.bukkit.event.entity
Enum EntityTransformEvent.TransformReason
java.lang.Object
java.lang.Enum<EntityTransformEvent.TransformReason>
org.bukkit.event.entity.EntityTransformEvent.TransformReason
- All Implemented Interfaces:
Serializable
,Comparable<EntityTransformEvent.TransformReason>
,Constable
- Enclosing class:
- EntityTransformEvent
public static enum EntityTransformEvent.TransformReason extends Enum<EntityTransformEvent.TransformReason>
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant 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.UNKNOWN
When reason is unknown. -
Method Summary
Modifier and Type Method 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.
-
Enum Constant Details
-
CURED
When a zombie gets cured and a villager is spawned. -
INFECTION
When a villager gets infected and a zombie villager spawns. -
DROWNED
When a entity drowns in water and a new entity spawns. -
SHEARED
When a mooshroom (or MUSHROOM_COW) is sheared and a cow spawns. -
LIGHTNING
When lightning strikes a entity. -
SPLIT
When a slime splits into multiple smaller slimes. -
UNKNOWN
When reason is unknown.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-