public interface GameDictionary
GameDictionary.Entry
s.
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 | Interface and Description |
---|---|
static interface |
GameDictionary.Entry |
Modifier and Type | Method and Description |
---|---|
Set<GameDictionary.Entry> |
get(String key)
Retrieves the entries registered for the given key.
|
SetMultimap<String,GameDictionary.Entry> |
getAll()
Retrieves all entries registered in this game dictionary, mapped by their
key.
|
void |
register(String key,
GameDictionary.Entry entry)
Registers an
GameDictionary.Entry
in the dictionary with a String key. |
void register(String key, GameDictionary.Entry entry)
GameDictionary.Entry
in the dictionary with a String key. The stack size is ignored.key
- The key of the item as a Stringentry
- The item to registerSet<GameDictionary.Entry> get(String key)
key
- The key of the entries as a StringSetMultimap<String,GameDictionary.Entry> getAll()