Package org.bukkit.event.entity
Enum Class 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
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum 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 Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static EntityTransformEvent.TransformReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CURED
When a zombie gets cured and a villager is spawned. -
FROZEN
When an entity is shaking in Powder Snow and a new entity spawns. -
INFECTION
When a villager gets infected and a zombie villager spawns. -
DROWNED
When an 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. -
PIGLIN_ZOMBIFIED
When a piglin converts to a zombified piglin. -
UNKNOWN
When reason is unknown.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-