Enum ShopPriceType

java.lang.Object
java.lang.Enum<ShopPriceType>
de.marcely.bedwars.api.game.shop.price.ShopPriceType
All Implemented Interfaces:
Serializable, Comparable<ShopPriceType>, java.lang.constant.Constable

public enum ShopPriceType extends Enum<ShopPriceType>
  • Enum Constant Details

  • Method Details

    • values

      public static ShopPriceType[] 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 ShopPriceType 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 String getId()
      Returns the id of this type that is being used to identify it in e.g. the shop config file.
      Returns:
      The of this price type
    • getById

      @Nullable public static @Nullable ShopPriceType getById(String id)
      Tries to look up for a price type with a specific id.
      Parameters:
      id - The id that we want to match
      Returns:
      The given price. null if we couldn't match any