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