public interface BlockRegistry
| 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 BaseBlock createFromId(String id)
id - the id@Nullable BaseBlock createFromId(int id)
id - the id@Nullable BlockMaterial getMaterial(BaseBlock block)
block - the blockCopyright © 2010-2014. All Rights Reserved.