Enum PandaEntity.Gene

java.lang.Object
java.lang.Enum<PandaEntity.Gene>
net.minecraft.entity.passive.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>
  • Enum Constant Details

  • Field Details

    • VALUES

      private static final PandaEntity.Gene[] VALUES
    • id

      private final int id
    • name

      private final String name
    • recessive

      private final boolean recessive
  • Constructor Details

    • Gene

      private Gene​(int id, String name, boolean recessive)
  • Method Details

    • values

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

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

      public int getId()
    • getName

      public String getName()
    • isRecessive

      public boolean isRecessive()
    • getProductGene

      private static PandaEntity.Gene getProductGene​(PandaEntity.Gene mainGene, PandaEntity.Gene hiddenGene)
    • byId

      public static PandaEntity.Gene byId​(int id)
    • byName

      public static PandaEntity.Gene byName​(String name)
    • createRandom

      public static PandaEntity.Gene createRandom​(Random random)