public interface BlockRegistry
Modifier and Type | Method and Description |
---|---|
BaseBlock |
createFromId(int id)
Create a new block using its legacy numeric ID.
|
BaseBlock |
createFromId(java.lang.String id)
Create a new block using its ID.
|
BlockMaterial |
getMaterial(BaseBlock block)
Get the material for the given block.
|
java.util.Map<java.lang.String,? extends State> |
getStates(BaseBlock block)
Get an unmodifiable map of states for this block.
|
@Nullable BaseBlock createFromId(java.lang.String id)
id
- the id@Nullable BaseBlock createFromId(int id)
id
- the id@Nullable BlockMaterial getMaterial(BaseBlock block)
block
- the block