public class CloudBlock extends CloudBlockSnapshot implements org.cloudburstmc.api.block.Block
| Modifier and Type | Field and Description |
|---|---|
static org.cloudburstmc.api.block.BlockState[] |
EMPTY |
| Constructor and Description |
|---|
CloudBlock(CloudLevel level,
com.nukkitx.math.vector.Vector3i position,
org.cloudburstmc.api.block.BlockState[] states) |
| Modifier and Type | Method and Description |
|---|---|
CloudChunk |
getChunk() |
CloudLevel |
getLevel() |
com.nukkitx.math.vector.Vector3i |
getPosition() |
org.cloudburstmc.api.block.Block |
getRelative(int x,
int y,
int z) |
org.cloudburstmc.api.block.BlockState |
getRelativeState(int x,
int y,
int z,
int layer) |
org.cloudburstmc.api.block.Block |
getSide(org.cloudburstmc.api.util.Direction face,
int step) |
org.cloudburstmc.api.block.BlockState |
getSideState(org.cloudburstmc.api.util.Direction face,
int step,
int layer) |
boolean |
isWaterlogged() |
org.cloudburstmc.api.block.Block |
refresh() |
void |
set(org.cloudburstmc.api.block.BlockState state,
int layer,
boolean direct,
boolean update) |
org.cloudburstmc.api.block.BlockSnapshot |
snapshot() |
getStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdown, down, downState, downState, east, east, eastState, eastState, getRelative, getRelativeState, getRelativeState, getRelativeState, getRelativeState, getSide, getSideState, getSideState, getX, getY, getZ, north, north, northState, northState, set, set, set, setExtra, setExtra, setExtra, south, south, southState, southState, up, up, upState, upState, west, west, westState, westStatepublic CloudBlock(CloudLevel level, com.nukkitx.math.vector.Vector3i position, org.cloudburstmc.api.block.BlockState[] states)
public CloudLevel getLevel()
getLevel in interface org.cloudburstmc.api.block.Blockpublic com.nukkitx.math.vector.Vector3i getPosition()
getPosition in interface org.cloudburstmc.api.block.Blockpublic CloudChunk getChunk()
getChunk in interface org.cloudburstmc.api.block.Blockpublic org.cloudburstmc.api.block.Block getSide(org.cloudburstmc.api.util.Direction face,
int step)
getSide in interface org.cloudburstmc.api.block.Blockpublic org.cloudburstmc.api.block.BlockState getRelativeState(int x,
int y,
int z,
int layer)
getRelativeState in interface org.cloudburstmc.api.block.Blockpublic org.cloudburstmc.api.block.BlockState getSideState(org.cloudburstmc.api.util.Direction face,
int step,
int layer)
getSideState in interface org.cloudburstmc.api.block.Blockpublic org.cloudburstmc.api.block.Block getRelative(int x,
int y,
int z)
getRelative in interface org.cloudburstmc.api.block.Blockpublic boolean isWaterlogged()
isWaterlogged in interface org.cloudburstmc.api.block.Blockpublic void set(org.cloudburstmc.api.block.BlockState state,
int layer,
boolean direct,
boolean update)
set in interface org.cloudburstmc.api.block.Blockpublic org.cloudburstmc.api.block.BlockSnapshot snapshot()
snapshot in interface org.cloudburstmc.api.block.Blockpublic org.cloudburstmc.api.block.Block refresh()
refresh in interface org.cloudburstmc.api.block.BlockCopyright © 2021. All rights reserved.