Class BlockStorage
java.lang.Object
org.cloudburstmc.server.level.chunk.BlockStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()org.cloudburstmc.api.block.BlockStategetBlock(int index)booleanisEmpty()voidreadFromStorage(io.netty.buffer.ByteBuf buffer)voidsetBlock(int index, org.cloudburstmc.api.block.BlockState blockState)voidwriteToNetwork(io.netty.buffer.ByteBuf buffer)voidwriteToStorage(io.netty.buffer.ByteBuf buffer)
-
Constructor Details
-
BlockStorage
public BlockStorage() -
BlockStorage
-
-
Method Details
-
getBlock
public org.cloudburstmc.api.block.BlockState getBlock(int index) -
setBlock
public void setBlock(int index, org.cloudburstmc.api.block.BlockState blockState) -
writeToNetwork
public void writeToNetwork(io.netty.buffer.ByteBuf buffer) -
writeToStorage
public void writeToStorage(io.netty.buffer.ByteBuf buffer) -
readFromStorage
public void readFromStorage(io.netty.buffer.ByteBuf buffer) -
isEmpty
public boolean isEmpty() -
copy
-