Package org.geysermc.geyser.level.chunk
Class GeyserChunkSection
java.lang.Object
org.geysermc.geyser.level.chunk.GeyserChunkSection
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserChunkSection(int airBlockId, int subChunkIndex) GeyserChunkSection(BlockStorage[] storage, int subChunkIndex) -
Method Summary
Modifier and TypeMethodDescriptionstatic intblockPosition(int x, int y, int z) copy(int subChunkIndex) intintgetFullBlock(int x, int y, int z, int layer) booleanisEmpty()voidsetFullBlock(int x, int y, int z, int layer, int fullBlock) voidwriteToNetwork(io.netty.buffer.ByteBuf buffer)
-
Constructor Details
-
GeyserChunkSection
public GeyserChunkSection(int airBlockId, int subChunkIndex) -
GeyserChunkSection
-
-
Method Details
-
getFullBlock
public int getFullBlock(int x, int y, int z, int layer) -
setFullBlock
public void setFullBlock(int x, int y, int z, int layer, int fullBlock) -
writeToNetwork
public void writeToNetwork(io.netty.buffer.ByteBuf buffer) -
estimateNetworkSize
public int estimateNetworkSize() -
getBlockStorageArray
-
isEmpty
public boolean isEmpty() -
copy
-
blockPosition
public static int blockPosition(int x, int y, int z)
-