Class BundledItemData
java.lang.Object
com.sk89q.worldedit.world.registry.BundledItemData
Provides item data based on the built-in item database that is bundled
with WorldEdit.
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturn the entry for the given item ID.static BundledItemData
Get a singleton instance of this object.Get the material properties for the given item.
-
Method Details
-
findById
Return the entry for the given item ID.- Parameters:
id
- the ID- Returns:
- the entry, or null
-
getMaterialById
Get the material properties for the given item.- Parameters:
id
- the string ID- Returns:
- the material's properties, or null
-
getInstance
Get a singleton instance of this object.- Returns:
- the instance
-