@Immutable public interface BlockState extends Metadatable
| Modifier and Type | Method and Description |
|---|---|
default <T extends BlockEntity> |
ensureBlockEntity(Class<T> clazz) |
Optional<BlockEntity> |
getBlockEntity() |
BlockType |
getBlockType() |
BlockStateBuilder |
toBuilder() |
ensureMetadata, getMetadataBlockType getBlockType()
Optional<BlockEntity> getBlockEntity()
BlockStateBuilder toBuilder()
default <T extends BlockEntity> T ensureBlockEntity(Class<T> clazz)
Copyright © 2017–2019 NukkitX. All rights reserved.