public class BundledBlockData extends 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 nulls for all blocks.
| Modifier and Type | Method and Description |
|---|---|
static BundledBlockData |
getInstance()
Get a singleton instance of this object.
|
BlockMaterial |
getMaterialById(int id)
Get the material properties for the given block.
|
Map<String,? extends State> |
getStatesById(int id)
Get the states for the given block.
|
Integer |
toLegacyId(String id)
Convert the given string ID to a legacy numeric ID.
|
@Nullable public Integer toLegacyId(String id)
id - the ID@Nullable public BlockMaterial getMaterialById(int id)
id - the legacy numeric ID@Nullable public Map<String,? extends State> getStatesById(int id)
id - the legacy numeric IDpublic static BundledBlockData getInstance()
Copyright © 2010-2014. All Rights Reserved.