public final class BundledBlockData
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 blocks.
Modifier and Type | Class and Description |
---|---|
static class |
BundledBlockData.BlockEntry |
Modifier and Type | Method and Description |
---|---|
BundledBlockData.BlockEntry |
findById(java.lang.String id)
Return the entry for the given block ID.
|
static BundledBlockData |
getInstance()
Get a singleton instance of this object.
|
BlockMaterial |
getMaterialById(java.lang.String id)
Get the material properties for the given block.
|
@Nullable public BundledBlockData.BlockEntry findById(java.lang.String id)
id
- the ID@Nullable public BlockMaterial getMaterialById(java.lang.String id)
id
- the string IDpublic static BundledBlockData getInstance()