Package net.minecraft.entity.passive
Enum PandaEntity.Gene
- All Implemented Interfaces:
Serializable,Comparable<PandaEntity.Gene>,java.lang.constant.Constable
- Enclosing class:
- PandaEntity
public static enum PandaEntity.Gene extends Enum<PandaEntity.Gene>
-
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 static PandaEntity.GenebyId(int id)static PandaEntity.GenebyName(String name)static PandaEntity.GenecreateRandom(Random random)intgetId()StringgetName()private static PandaEntity.GenegetProductGene(PandaEntity.Gene mainGene, PandaEntity.Gene hiddenGene)booleanisRecessive()static PandaEntity.GenevalueOf(String name)Returns the enum constant of this type with the specified name.static PandaEntity.Gene[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NORMAL
-
LAZY
-
WORRIED
-
PLAYFUL
-
BROWN
-
WEAK
-
AGGRESSIVE
-
-
Field Details
-
VALUES
-
id
private final int id -
name
-
recessive
private final boolean recessive
-
-
Constructor Details
-
Gene
-
-
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
-
isRecessive
public boolean isRecessive() -
getProductGene
private static PandaEntity.Gene getProductGene(PandaEntity.Gene mainGene, PandaEntity.Gene hiddenGene) -
byId
-
byName
-
createRandom
-