public static enum EntityTransformedEvent.TransformedReason extends Enum<EntityTransformedEvent.TransformedReason>
Enum Constant and Description |
---|
CURED
When a zombie villager is cured
|
DROWNED
When a zombie drowns
|
INFECTED
When a villager turns to a zombie villager
|
LIGHTNING
When a pig turns to a zombiepigman
|
SHEARED
When a mooshroom turns to a cow
|
Modifier and Type | Method and Description |
---|---|
static EntityTransformedEvent.TransformedReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntityTransformedEvent.TransformedReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityTransformedEvent.TransformedReason DROWNED
public static final EntityTransformedEvent.TransformedReason CURED
public static final EntityTransformedEvent.TransformedReason INFECTED
public static final EntityTransformedEvent.TransformedReason SHEARED
public static final EntityTransformedEvent.TransformedReason LIGHTNING
public static EntityTransformedEvent.TransformedReason[] values()
for (EntityTransformedEvent.TransformedReason c : EntityTransformedEvent.TransformedReason.values()) System.out.println(c);
public static EntityTransformedEvent.TransformedReason 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 © 2021. All rights reserved.