Enum Class EnumGrowth

java.lang.Object
java.lang.Enum<EnumGrowth>
com.pixelmonmod.pixelmon.enums.EnumGrowth
All Implemented Interfaces:
ITranslatable, Serializable, Comparable<EnumGrowth>, Constable

public enum EnumGrowth extends Enum<EnumGrowth> implements ITranslatable
  • Enum Constant Details

  • Field Details

    • scaleValue

      public float scaleValue
    • rarity

      public int rarity
    • index

      public int index
    • scaleOrdinal

      public int scaleOrdinal
    • orderedList

      public static List<EnumGrowth> orderedList
  • Method Details

    • values

      public static EnumGrowth[] 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 EnumGrowth 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
    • getRandomGrowth

      public static EnumGrowth getRandomGrowth()
    • getGrowthFromIndex

      public static EnumGrowth getGrowthFromIndex(int index)
    • getNextGrowthRestricted

      public static EnumGrowth getNextGrowthRestricted(EnumGrowth g)
    • getFromNBT

      public static EnumGrowth getFromNBT(net.minecraft.nbt.CompoundTag compound)
    • getNextGrowth

      public static EnumGrowth getNextGrowth(EnumGrowth g)
    • hasGrowth

      public static boolean hasGrowth(String name)
    • getGrowthFromString

      public static EnumGrowth getGrowthFromString(String name)
    • getGrowthFromScaleOrdinal

      public static EnumGrowth getGrowthFromScaleOrdinal(Integer scaleOrdinal)
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface ITranslatable