public class LegacyBlockRegistry extends Object implements BlockRegistry
BundledBlockData to serve information
about blocks.| Constructor and Description |
|---|
LegacyBlockRegistry() |
| Modifier and Type | Method and Description |
|---|---|
BaseBlock |
createFromId(int id)
Create a new block using its legacy numeric ID.
|
BaseBlock |
createFromId(String id)
Create a new block using its ID.
|
BlockMaterial |
getMaterial(BaseBlock block)
Get the material for the given block.
|
Map<String,? extends State> |
getStates(BaseBlock block)
Get an unmodifiable map of states for this block.
|
@Nullable public BaseBlock createFromId(String id)
BlockRegistrycreateFromId in interface BlockRegistryid - the id@Nullable public BaseBlock createFromId(int id)
BlockRegistrycreateFromId in interface BlockRegistryid - the id@Nullable public BlockMaterial getMaterial(BaseBlock block)
BlockRegistrygetMaterial in interface BlockRegistryblock - the block@Nullable public Map<String,? extends State> getStates(BaseBlock block)
BlockRegistrygetStates in interface BlockRegistryblock - the blockCopyright © 2010-2014. All Rights Reserved.