public class Category extends Component implements Identifiable
| Modifier and Type | Field and Description |
|---|---|
static Category |
ALCHEMY
Alchemy (ie. brewing ingredients, potions etc.)
|
static java.lang.String |
ALCHEMY_NAME
Alchemy (ie. brewing ingredients, potions etc.)
|
static Category |
BUILDING_BLOCKS
Building blocks (ie. stone, dirt, bricks etc.)
|
static java.lang.String |
BUILDING_BLOCKS_NAME
Building blocks (ie. stone, dirt, bricks etc.)
|
static Category |
COMBAT
Weapons and armor
|
static java.lang.String |
COMBAT_NAME
Weapons and armor
|
static Category |
DECORATIONS
Decorative blocks (ie. flower pots, curtains, torches etc.)
|
static java.lang.String |
DECORATIONS_NAME
Decorative blocks (ie. flower pots, curtains, torches etc.)
|
static Category |
FOOD
Food (ie. bacon and other foods)
|
static java.lang.String |
FOOD_NAME
Food (ie. bacon and other foods)
|
java.util.Optional<Item> |
item |
static Category |
MATERIALS
Raw materials (ie. ingots etc.)
|
static java.lang.String |
MATERIALS_NAME
Raw materials (ie. ingots etc.)
|
static Category |
MISCELLANEOUS
Miscellaneous items (ie. what doesn't fit into any other category)
|
static java.lang.String |
MISCELLANEOUS_NAME
Miscellaneous items (ie. what doesn't fit into any other category)
|
java.lang.String |
name |
static Category |
TECHNOLOGY
Technology (ie. buttons, levers, wires etc.)
|
static java.lang.String |
TECHNOLOGY_NAME
Technology (ie. buttons, levers, wires etc.)
|
static Category |
TOOLS
Tools
|
static java.lang.String |
TOOLS_NAME
Tools
|
static Category |
TRANSPORTATION
Transportation (ie. cars, rails, minecarts etc.)
|
static java.lang.String |
TRANSPORTATION_NAME
Transportation (ie. cars, rails, minecarts etc.)
|
| Constructor and Description |
|---|
Category(java.lang.String name) |
Category(java.lang.String name,
Item item) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getID()
Gets the ID that represents this Component type.
|
int |
hashCode() |
Category |
withItem(java.util.Optional<Item> item) |
getProvider, onProviderChangeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitsameTypepublic static final java.lang.String BUILDING_BLOCKS_NAME
public static final Category BUILDING_BLOCKS
public static final java.lang.String DECORATIONS_NAME
public static final Category DECORATIONS
public static final java.lang.String TECHNOLOGY_NAME
public static final Category TECHNOLOGY
public static final java.lang.String TRANSPORTATION_NAME
public static final Category TRANSPORTATION
public static final java.lang.String FOOD_NAME
public static final Category FOOD
public static final java.lang.String TOOLS_NAME
public static final Category TOOLS
public static final java.lang.String COMBAT_NAME
public static final Category COMBAT
public static final java.lang.String ALCHEMY_NAME
public static final Category ALCHEMY
public static final java.lang.String MATERIALS_NAME
public static final Category MATERIALS
public static final java.lang.String MISCELLANEOUS_NAME
public static final Category MISCELLANEOUS
public final java.lang.String name
public final java.util.Optional<Item> item
public Category(java.lang.String name,
Item item)
public Category(java.lang.String name)
public java.lang.String getID()
ComponentgetID in interface IdentifiablegetID in class Componentpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object