Enum Class PandaEntity.Gene

java.lang.Object
java.lang.Enum<PandaEntity.Gene>
net.minecraft.entity.passive.PandaEntity.Gene
All Implemented Interfaces:
Serializable, Comparable<PandaEntity.Gene>, Constable
Enclosing class:
PandaEntity

public static enum PandaEntity.Gene extends Enum<PandaEntity.Gene>
  • Enum Constant Details

  • Field Details

    • BY_ID

      private static final PandaEntity.Gene[] BY_ID
    • id

      private final int id
    • name

      private final String name
    • isRecessive

      private final boolean isRecessive
  • Constructor Details

    • Gene

      private Gene(int p_i51468_3_, String p_i51468_4_, boolean p_i51468_5_)
  • Method Details

    • values

      public static PandaEntity.Gene[] 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

      public static PandaEntity.Gene valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getId

      public int getId()
    • getName

      public String getName()
    • isRecessive

      public boolean isRecessive()
    • getVariantFromGenes

      private static PandaEntity.Gene getVariantFromGenes(PandaEntity.Gene p_221101_0_, PandaEntity.Gene p_221101_1_)
    • byId

      public static PandaEntity.Gene byId(int p_221105_0_)
    • byName

      public static PandaEntity.Gene byName(String p_221108_0_)
    • getRandom

      public static PandaEntity.Gene getRandom(Random p_221104_0_)