Enum Class MarketCategory
- All Implemented Interfaces:
Serializable,Comparable<MarketCategory>,Constable
Represents a Market Category, holding a set of items or blocks
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConsists of common outdoor decoration items and foodConsists of common furniture and furniture utility blocksConsists of Mob Loot itemsConsists of Natural mineral blocksConsists of common ores, ingots, and nuggetsConsists of items rarely found in the worldConsists of common redstone blocks and itemsConsists of common crafting and building blocks/items -
Method Summary
Modifier and TypeMethodDescriptionFetches an immutable list of all of the item names in this MarketCategory, whether they exist in the current Minecraft Version or not.getItems()Fetches an immutable set of all of the resolvable items in this MarketCategory.@NotNull StringFetches the localized name of this MarketCategorystatic MarketCategoryReturns the enum constant of this class with the specified name.static MarketCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UTILITIES
Consists of common crafting and building blocks/items -
MINERALS
Consists of Natural mineral blocks -
ORES
Consists of common ores, ingots, and nuggets -
DECORATIONS_FOOD
Consists of common outdoor decoration items and food -
FURNITURE
Consists of common furniture and furniture utility blocks -
LOOT
Consists of Mob Loot items -
REDSTONE
Consists of common redstone blocks and items -
RARITIES
Consists of items rarely found in the world
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getItems
Fetches an immutable set of all of the resolvable items in this MarketCategory. This will include the items fromNovaMarket.getCustomItems()that match this category.- Returns:
- Immutable Set of all resolved items in this Category
-
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 fromNovaMarket.getCustomItems()that match this category.- Returns:
- Immutable List of all item names in this Category
-
getLocalizedName
Fetches the localized name of this MarketCategory- Returns:
- Localized Name
-