Package org.geysermc.geyser.level.chunk
Class GeyserChunkSection
java.lang.Object
org.geysermc.geyser.level.chunk.GeyserChunkSection
-
Constructor Summary
ConstructorsConstructorDescriptionGeyserChunkSection(int airBlockId)GeyserChunkSection(BlockStorage[] storage) -
Method Summary
Modifier and TypeMethodDescriptionstatic intblockPosition(int x, int y, int z)copy()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) -
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)
-