public abstract class ItemRegistrar extends Object
Constructor and Description |
---|
ItemRegistrar() |
Modifier and Type | Method and Description |
---|---|
Material |
createDefault(String id) |
abstract Material |
get(String id,
String... alias)
Get material's type
(Save in cache if found any of them)
|
static ItemRegistrar |
getInstance()
Get item registry instance
To get all material
|
public abstract Material get(String id, String... alias)
id
- the main ID of the materialalias
- All others names that the material can have, according to versioncreateDefault(String)
result (with given id)public static ItemRegistrar getInstance()