Enum Class Panda.Gene

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

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

  • Field Details

    • BY_ID

      private static final Panda.Gene[] BY_ID
    • MAX_GENE

      private static final int MAX_GENE
      See Also:
    • id

      private final int id
    • name

      private final String name
    • isRecessive

      private final boolean isRecessive
  • Constructor Details

    • Gene

      private Gene(int p_29244_, String p_29245_, boolean p_29246_)
  • Method Details

    • values

      public static Panda.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 Panda.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

      static Panda.Gene getVariantFromGenes(Panda.Gene p_29261_, Panda.Gene p_29262_)
    • byId

      public static Panda.Gene byId(int p_29249_)
    • byName

      public static Panda.Gene byName(String p_29254_)
    • getRandom

      public static Panda.Gene getRandom(RandomSource p_218235_)