public final class BundledItemData
extends java.lang.Object
A new instance cannot be created. Use getInstance()
to get
an instance.
The data is read from a JSON file that is bundled with WorldEdit. If
reading fails (which occurs when this class is first instantiated), then
the methods will return null
s for all items.
Modifier and Type | Class and Description |
---|---|
static class |
BundledItemData.ItemEntry |
Modifier and Type | Method and Description |
---|---|
BundledItemData.ItemEntry |
findById(java.lang.String id)
Return the entry for the given item ID.
|
static BundledItemData |
getInstance()
Get a singleton instance of this object.
|
ItemMaterial |
getMaterialById(java.lang.String id)
Get the material properties for the given item.
|
@Nullable public BundledItemData.ItemEntry findById(java.lang.String id)
id
- the ID@Nullable public ItemMaterial getMaterialById(java.lang.String id)
id
- the string IDpublic static BundledItemData getInstance()