public class NullItemRegistry extends java.lang.Object implements ItemRegistry
Constructor and Description |
---|
NullItemRegistry() |
Modifier and Type | Method and Description |
---|---|
BaseItem |
createFromId(int id)
Create a new item using its legacy numeric ID.
|
BaseItem |
createFromId(java.lang.String id)
Create a new item using its ID.
|
@Nullable public BaseItem createFromId(java.lang.String id)
ItemRegistry
createFromId
in interface ItemRegistry
id
- the id@Nullable public BaseItem createFromId(int id)
ItemRegistry
createFromId
in interface ItemRegistry
id
- the id