Package net.minecraft.entity.passive
Enum Class PandaEntity.Gene
- All Implemented Interfaces:
Serializable
,Comparable<PandaEntity.Gene>
,Constable
,StringIdentifiable
- Enclosing class:
PandaEntity
- Mappings:
Namespace Name official bsa$a
intermediary net/minecraft/class_1440$class_1443
named net/minecraft/entity/passive/PandaEntity$Gene
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.Codec<E extends Enum<E> & StringIdentifiable>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final IntFunction<PandaEntity.Gene>
static final StringIdentifiable.Codec<PandaEntity.Gene>
private static final int
private final int
private final String
private final boolean
Fields inherited from interface net.minecraft.util.StringIdentifiable
field_38377
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns the unique string representation of the enum, used for serialization.static PandaEntity.Gene
byId
(int id) static PandaEntity.Gene
static PandaEntity.Gene
createRandom
(Random random) int
getId()
(package private) static PandaEntity.Gene
getProductGene
(PandaEntity.Gene mainGene, PandaEntity.Gene hiddenGene) boolean
static PandaEntity.Gene
Returns the enum constant of this class with the specified name.static PandaEntity.Gene[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
- Mappings:
Namespace Name Mixin selector official a
Lbsa$a;a:Lbsa$a;
intermediary field_6788
Lnet/minecraft/class_1440$class_1443;field_6788:Lnet/minecraft/class_1440$class_1443;
named NORMAL
Lnet/minecraft/entity/passive/PandaEntity$Gene;NORMAL:Lnet/minecraft/entity/passive/PandaEntity$Gene;
-
LAZY
- Mappings:
Namespace Name Mixin selector official b
Lbsa$a;b:Lbsa$a;
intermediary field_6794
Lnet/minecraft/class_1440$class_1443;field_6794:Lnet/minecraft/class_1440$class_1443;
named LAZY
Lnet/minecraft/entity/passive/PandaEntity$Gene;LAZY:Lnet/minecraft/entity/passive/PandaEntity$Gene;
-
WORRIED
- Mappings:
Namespace Name Mixin selector official c
Lbsa$a;c:Lbsa$a;
intermediary field_6795
Lnet/minecraft/class_1440$class_1443;field_6795:Lnet/minecraft/class_1440$class_1443;
named WORRIED
Lnet/minecraft/entity/passive/PandaEntity$Gene;WORRIED:Lnet/minecraft/entity/passive/PandaEntity$Gene;
-
PLAYFUL
- Mappings:
Namespace Name Mixin selector official d
Lbsa$a;d:Lbsa$a;
intermediary field_6791
Lnet/minecraft/class_1440$class_1443;field_6791:Lnet/minecraft/class_1440$class_1443;
named PLAYFUL
Lnet/minecraft/entity/passive/PandaEntity$Gene;PLAYFUL:Lnet/minecraft/entity/passive/PandaEntity$Gene;
-
BROWN
- Mappings:
Namespace Name Mixin selector official e
Lbsa$a;e:Lbsa$a;
intermediary field_6792
Lnet/minecraft/class_1440$class_1443;field_6792:Lnet/minecraft/class_1440$class_1443;
named BROWN
Lnet/minecraft/entity/passive/PandaEntity$Gene;BROWN:Lnet/minecraft/entity/passive/PandaEntity$Gene;
-
WEAK
- Mappings:
Namespace Name Mixin selector official f
Lbsa$a;f:Lbsa$a;
intermediary field_6793
Lnet/minecraft/class_1440$class_1443;field_6793:Lnet/minecraft/class_1440$class_1443;
named WEAK
Lnet/minecraft/entity/passive/PandaEntity$Gene;WEAK:Lnet/minecraft/entity/passive/PandaEntity$Gene;
-
AGGRESSIVE
- Mappings:
Namespace Name Mixin selector official g
Lbsa$a;g:Lbsa$a;
intermediary field_6789
Lnet/minecraft/class_1440$class_1443;field_6789:Lnet/minecraft/class_1440$class_1443;
named AGGRESSIVE
Lnet/minecraft/entity/passive/PandaEntity$Gene;AGGRESSIVE:Lnet/minecraft/entity/passive/PandaEntity$Gene;
-
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official h
Lbsa$a;h:Lapr$a;
intermediary field_41673
Lnet/minecraft/class_1440$class_1443;field_41673:Lnet/minecraft/class_3542$class_7292;
named CODEC
Lnet/minecraft/entity/passive/PandaEntity$Gene;CODEC:Lnet/minecraft/util/StringIdentifiable$Codec;
-
BY_ID
- Mappings:
Namespace Name Mixin selector official i
Lbsa$a;i:Ljava/util/function/IntFunction;
intermediary field_6786
Lnet/minecraft/class_1440$class_1443;field_6786:Ljava/util/function/IntFunction;
named BY_ID
Lnet/minecraft/entity/passive/PandaEntity$Gene;BY_ID:Ljava/util/function/IntFunction;
-
field_30350
private static final int field_30350- See Also:
- Mappings:
Namespace Name Mixin selector official j
Lbsa$a;j:I
intermediary field_30350
Lnet/minecraft/class_1440$class_1443;field_30350:I
named field_30350
Lnet/minecraft/entity/passive/PandaEntity$Gene;field_30350:I
-
id
private final int id- Mappings:
Namespace Name Mixin selector official k
Lbsa$a;k:I
intermediary field_6785
Lnet/minecraft/class_1440$class_1443;field_6785:I
named id
Lnet/minecraft/entity/passive/PandaEntity$Gene;id:I
-
name
- Mappings:
Namespace Name Mixin selector official l
Lbsa$a;l:Ljava/lang/String;
intermediary field_6797
Lnet/minecraft/class_1440$class_1443;field_6797:Ljava/lang/String;
named name
Lnet/minecraft/entity/passive/PandaEntity$Gene;name:Ljava/lang/String;
-
recessive
private final boolean recessive- Mappings:
Namespace Name Mixin selector official m
Lbsa$a;m:Z
intermediary field_6790
Lnet/minecraft/class_1440$class_1443;field_6790:Z
named recessive
Lnet/minecraft/entity/passive/PandaEntity$Gene;recessive:Z
-
-
Constructor Details
-
Gene
- Mappings:
Namespace Name Mixin selector official <init>
Lbsa$a;<init>(Ljava/lang/String;IILjava/lang/String;Z)V
intermediary <init>
Lnet/minecraft/class_1440$class_1443;<init>(Ljava/lang/String;IILjava/lang/String;Z)V
named <init>
Lnet/minecraft/entity/passive/PandaEntity$Gene;<init>(Ljava/lang/String;IILjava/lang/String;Z)V
-
-
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
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official a
Lbsa$a;a()I
intermediary method_6564
Lnet/minecraft/class_1440$class_1443;method_6564()I
named getId
Lnet/minecraft/entity/passive/PandaEntity$Gene;getId()I
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asString
in interfaceStringIdentifiable
- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector official c
Lapr;c()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
-
isRecessive
public boolean isRecessive()- Mappings:
Namespace Name Mixin selector official b
Lbsa$a;b()Z
intermediary method_6568
Lnet/minecraft/class_1440$class_1443;method_6568()Z
named isRecessive
Lnet/minecraft/entity/passive/PandaEntity$Gene;isRecessive()Z
-
getProductGene
- Mappings:
Namespace Name Mixin selector official a
Lbsa$a;a(Lbsa$a;Lbsa$a;)Lbsa$a;
intermediary method_6569
Lnet/minecraft/class_1440$class_1443;method_6569(Lnet/minecraft/class_1440$class_1443;Lnet/minecraft/class_1440$class_1443;)Lnet/minecraft/class_1440$class_1443;
named getProductGene
Lnet/minecraft/entity/passive/PandaEntity$Gene;getProductGene(Lnet/minecraft/entity/passive/PandaEntity$Gene;Lnet/minecraft/entity/passive/PandaEntity$Gene;)Lnet/minecraft/entity/passive/PandaEntity$Gene;
-
byId
- Mappings:
Namespace Name Mixin selector official a
Lbsa$a;a(I)Lbsa$a;
intermediary method_6566
Lnet/minecraft/class_1440$class_1443;method_6566(I)Lnet/minecraft/class_1440$class_1443;
named byId
Lnet/minecraft/entity/passive/PandaEntity$Gene;byId(I)Lnet/minecraft/entity/passive/PandaEntity$Gene;
-
byName
- Mappings:
Namespace Name Mixin selector official a
Lbsa$a;a(Ljava/lang/String;)Lbsa$a;
intermediary method_6567
Lnet/minecraft/class_1440$class_1443;method_6567(Ljava/lang/String;)Lnet/minecraft/class_1440$class_1443;
named byName
Lnet/minecraft/entity/passive/PandaEntity$Gene;byName(Ljava/lang/String;)Lnet/minecraft/entity/passive/PandaEntity$Gene;
-
createRandom
- Mappings:
Namespace Name Mixin selector official a
Lbsa$a;a(Lapf;)Lbsa$a;
intermediary method_17688
Lnet/minecraft/class_1440$class_1443;method_17688(Lnet/minecraft/class_5819;)Lnet/minecraft/class_1440$class_1443;
named createRandom
Lnet/minecraft/entity/passive/PandaEntity$Gene;createRandom(Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/entity/passive/PandaEntity$Gene;
-