Enum Class ModelRarity

java.lang.Object
java.lang.Enum<ModelRarity>
io.github.natanimn.telebof.enums.ModelRarity
All Implemented Interfaces:
Serializable, Comparable<ModelRarity>, Constable

public enum ModelRarity extends Enum<ModelRarity>
Represents unique gift model rarity
Since:
1.4.0
Version:
1.4.0
Author:
Natanim
  • Enum Constant Details

    • UNCOMMON

      @SerializedName("uncommon") public static final ModelRarity UNCOMMON
    • RARE

      @SerializedName("rare") public static final ModelRarity RARE
    • EPIC

      @SerializedName("epic") public static final ModelRarity EPIC
    • LEGENDARY

      @SerializedName("legendary") public static final ModelRarity LEGENDARY
  • Method Details

    • values

      public static ModelRarity[] 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 ModelRarity 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