Package org.cloudburstmc.server.block
Class CloudBlock
java.lang.Object
org.cloudburstmc.server.block.CloudBlockSnapshot
org.cloudburstmc.server.block.CloudBlock
- All Implemented Interfaces:
org.cloudburstmc.api.block.Block,org.cloudburstmc.api.block.BlockSnapshot
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCloudBlock(CloudLevel level, com.nukkitx.math.vector.Vector3i position, org.cloudburstmc.api.block.BlockState[] states) -
Method Summary
Modifier and TypeMethodDescriptiongetChunk()getLevel()com.nukkitx.math.vector.Vector3iorg.cloudburstmc.api.block.BlockgetRelative(int x, int y, int z)org.cloudburstmc.api.block.BlockStategetRelativeState(int x, int y, int z, int layer)org.cloudburstmc.api.block.BlockgetSide(org.cloudburstmc.api.util.Direction face, int step)org.cloudburstmc.api.block.BlockStategetSideState(org.cloudburstmc.api.util.Direction face, int step, int layer)booleanorg.cloudburstmc.api.block.Blockrefresh()voidset(org.cloudburstmc.api.block.BlockState state, int layer, boolean direct, boolean update)org.cloudburstmc.api.block.BlockSnapshotsnapshot()Methods inherited from class org.cloudburstmc.server.block.CloudBlockSnapshot
getStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.block.Block
down, 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, westStateMethods inherited from interface org.cloudburstmc.api.block.BlockSnapshot
getExtra, getLiquid, getLiquidLayer, getState, getState
-
Field Details
-
EMPTY
public static org.cloudburstmc.api.block.BlockState[] EMPTY
-
-
Constructor Details
-
CloudBlock
public CloudBlock(CloudLevel level, com.nukkitx.math.vector.Vector3i position, org.cloudburstmc.api.block.BlockState[] states)
-
-
Method Details
-
getLevel
- Specified by:
getLevelin interfaceorg.cloudburstmc.api.block.Block
-
getPosition
public com.nukkitx.math.vector.Vector3i getPosition()- Specified by:
getPositionin interfaceorg.cloudburstmc.api.block.Block
-
getChunk
- Specified by:
getChunkin interfaceorg.cloudburstmc.api.block.Block
-
getSide
public org.cloudburstmc.api.block.Block getSide(org.cloudburstmc.api.util.Direction face, int step)- Specified by:
getSidein interfaceorg.cloudburstmc.api.block.Block
-
getRelativeState
public org.cloudburstmc.api.block.BlockState getRelativeState(int x, int y, int z, int layer)- Specified by:
getRelativeStatein interfaceorg.cloudburstmc.api.block.Block
-
getSideState
public org.cloudburstmc.api.block.BlockState getSideState(org.cloudburstmc.api.util.Direction face, int step, int layer)- Specified by:
getSideStatein interfaceorg.cloudburstmc.api.block.Block
-
getRelative
public org.cloudburstmc.api.block.Block getRelative(int x, int y, int z)- Specified by:
getRelativein interfaceorg.cloudburstmc.api.block.Block
-
isWaterlogged
public boolean isWaterlogged()- Specified by:
isWaterloggedin interfaceorg.cloudburstmc.api.block.Block
-
set
public void set(org.cloudburstmc.api.block.BlockState state, int layer, boolean direct, boolean update)- Specified by:
setin interfaceorg.cloudburstmc.api.block.Block
-
snapshot
public org.cloudburstmc.api.block.BlockSnapshot snapshot()- Specified by:
snapshotin interfaceorg.cloudburstmc.api.block.Block
-
refresh
public org.cloudburstmc.api.block.Block refresh()- Specified by:
refreshin interfaceorg.cloudburstmc.api.block.Block
-