Package org.geysermc.geyser.level.chunk
Class GeyserChunkSection
java.lang.Object
org.geysermc.geyser.level.chunk.GeyserChunkSection
-
Constructor Summary
ConstructorDescriptionGeyserChunkSection(int airBlockId)
GeyserChunkSection(BlockStorage[] storage)
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
blockPosition(int x, int y, int z)
copy()
int
int
getFullBlock(int x, int y, int z, int layer)
boolean
isEmpty()
void
setFullBlock(int x, int y, int z, int layer, int fullBlock)
void
writeToNetwork(io.netty.buffer.ByteBuf buffer)
-
Constructor Details
-
GeyserChunkSection
public GeyserChunkSection(int airBlockId) -
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)
-