Enum Class MarketCategory

java.lang.Object
java.lang.Enum<MarketCategory>
us.teaminceptus.novaconomy.api.economy.market.MarketCategory
All Implemented Interfaces:
Serializable, Comparable<MarketCategory>, Constable

public enum MarketCategory extends Enum<MarketCategory>
Represents a Market Category, holding a set of items or blocks
  • Enum Constant Details

    • UTILITIES

      public static final MarketCategory UTILITIES
      Consists of common crafting and building blocks/items
    • MINERALS

      public static final MarketCategory MINERALS
      Consists of Natural mineral blocks
    • ORES

      public static final MarketCategory ORES
      Consists of common ores, ingots, and nuggets
    • DECORATIONS_FOOD

      public static final MarketCategory DECORATIONS_FOOD
      Consists of common outdoor decoration items and food
    • FURNITURE

      public static final MarketCategory FURNITURE
      Consists of common furniture and furniture utility blocks
    • LOOT

      public static final MarketCategory LOOT
      Consists of Mob Loot items
    • REDSTONE

      public static final MarketCategory REDSTONE
      Consists of common redstone blocks and items
    • RARITIES

      public static final MarketCategory RARITIES
      Consists of items rarely found in the world
  • Method Details

    • values

      public static MarketCategory[] 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 MarketCategory 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
    • getItems

      @NotNull public @NotNull Set<Material> getItems()
      Fetches an immutable set of all of the resolvable items in this MarketCategory. This will include the items from NovaMarket.getCustomItems() that match this category.
      Returns:
      Immutable Set of all resolved items in this Category
    • getItemNames

      @NotNull public @NotNull List<String> getItemNames()
      Fetches an immutable list of all of the item names in this MarketCategory, whether they exist in the current Minecraft Version or not. This does not include the items from NovaMarket.getCustomItems() that match this category.
      Returns:
      Immutable List of all item names in this Category
    • getLocalizedName

      @NotNull public @NotNull String getLocalizedName()
      Fetches the localized name of this MarketCategory
      Returns:
      Localized Name