public interface GameDictionary
ItemTypes
.
Note that the GameDictionary's keys are different from Minecraft item ids. Minecraft item IDs are namespaces, e.g. minecraft:carrot while ItemDictionary keys are not, by design(e.g. carrot). This is mainly to keep supporting the existing Forge 'ore dictionary'.
Modifier and Type | Method and Description |
---|---|
Set<ItemType> |
get(String key)
Retrieves the item types registered for the given key.
|
Map<String,Set<ItemType>> |
getAllItems()
Retrieves all items registered in this item dictionary, mapped by
their key.
|
void |
register(String key,
ItemType type)
Registers an ItemType in the dictionary with a String key.
|
void register(String key, ItemType type)
key
- The key of the item as a Stringtype
- The item type to registerSet<ItemType> get(String key)
key
- The key of the items as a String