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