public class NukkitBlock extends Object implements Block
| Constructor and Description |
|---|
NukkitBlock(Level level,
Chunk chunk,
com.flowpowered.math.vector.Vector3i blockPosition,
BlockState state) |
| Modifier and Type | Method and Description |
|---|---|
com.flowpowered.math.vector.Vector3i |
getBlockPosition() |
BlockState |
getBlockState() |
BoundingBox |
getBoundingBox() |
Chunk |
getChunk() |
Level |
getLevel() |
CompletableFuture<List<Block>> |
getNeighboringBlocks() |
List<Block> |
getNeighboringBlocksIfLoaded() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChunkLocationpublic NukkitBlock(Level level, Chunk chunk, com.flowpowered.math.vector.Vector3i blockPosition, BlockState state)
public com.flowpowered.math.vector.Vector3i getBlockPosition()
getBlockPosition in interface Blockpublic BoundingBox getBoundingBox()
getBoundingBox in interface Blockpublic BlockState getBlockState()
getBlockState in interface BlockSnapshotpublic List<Block> getNeighboringBlocksIfLoaded()
getNeighboringBlocksIfLoaded in interface Blockpublic CompletableFuture<List<Block>> getNeighboringBlocks()
getNeighboringBlocks in interface BlockCopyright © 2017–2019 NukkitX. All rights reserved.