Enum ShopProductType

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

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

  • Method Details

    • values

      public static ShopProductType[] 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 ShopProductType 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 product type
    • getById

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