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