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>,- java.lang.constant.Constable
- Enclosing class:
- EntityTransformEvent
public static enum EntityTransformEvent.TransformReason
extends Enum<EntityTransformEvent.TransformReason>
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionWhen a zombie gets cured and a villager is spawned.When an entity drowns in water and a new entity spawns.When an entity is shaking in Powder Snow and a new entity spawns.When a villager gets infected and a zombie villager spawns.When lightning strikes a entity.When a piglin converts to a zombified piglin.When a mooshroom (or MUSHROOM_COW) is sheared and a cow spawns.When a slime splits into multiple smaller slimes.When reason is unknown.
- 
Method SummaryModifier and TypeMethodDescriptionReturns 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- 
CUREDWhen a zombie gets cured and a villager is spawned.
- 
FROZENWhen an entity is shaking in Powder Snow and a new entity spawns.
- 
INFECTIONWhen a villager gets infected and a zombie villager spawns.
- 
DROWNEDWhen an entity drowns in water and a new entity spawns.
- 
SHEAREDWhen a mooshroom (or MUSHROOM_COW) is sheared and a cow spawns.
- 
LIGHTNINGWhen lightning strikes a entity.
- 
SPLITWhen a slime splits into multiple smaller slimes.
- 
PIGLIN_ZOMBIFIEDWhen a piglin converts to a zombified piglin.
- 
UNKNOWNWhen reason is unknown.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-