Package net.minecraft.entity.passive
Enum AxolotlEntity.Variant
- All Implemented Interfaces:
Serializable,Comparable<AxolotlEntity.Variant>,java.lang.constant.Constable
- Enclosing class:
- AxolotlEntity
public static enum AxolotlEntity.Variant extends Enum<AxolotlEntity.Variant>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description intgetId()StringgetName()private static AxolotlEntity.VariantgetRandom(Random random, boolean includeUnnatural)static AxolotlEntity.VariantgetRandomAll(Random random)static AxolotlEntity.VariantgetRandomNatural(Random random)static AxolotlEntity.VariantvalueOf(String name)Returns the enum constant of this type with the specified name.static AxolotlEntity.Variant[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LUCY
-
WILD
-
GOLD
-
CYAN
-
BLUE
-
-
Field Details
-
VARIANTS
-
id
private final int id -
name
-
natural
private final boolean natural
-
-
Constructor Details
-
Variant
-
-
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
-
getId
public int getId() -
getName
-
getRandomAll
-
getRandomNatural
-
getRandom
-