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, StringRepresentable
Enclosing class:
Panda

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

  • Field Details

  • 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()
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface StringRepresentable
    • 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_)