Package org.geysermc.geyser.level.chunk
Class BlockStorage
java.lang.Object
org.geysermc.geyser.level.chunk.BlockStorage
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBlockStorage(int airBlockId)
BlockStorage(int airBlockId, BitArrayVersion version)
BlockStorage(BitArray bitArray, it.unimi.dsi.fastutil.ints.IntList palette)
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
int
int
getFullBlock(int index)
it.unimi.dsi.fastutil.ints.IntList
int
idFor(int runtimeId)
boolean
isEmpty()
void
setFullBlock(int index, int runtimeId)
void
writeToNetwork(io.netty.buffer.ByteBuf buffer)
-
Field Details
-
SIZE
public static final int SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
BlockStorage
public BlockStorage(int airBlockId) -
BlockStorage
-
BlockStorage
-
-
Method Details
-
getFullBlock
public int getFullBlock(int index) -
setFullBlock
public void setFullBlock(int index, int runtimeId) -
writeToNetwork
public void writeToNetwork(io.netty.buffer.ByteBuf buffer) -
estimateNetworkSize
public int estimateNetworkSize() -
idFor
public int idFor(int runtimeId) -
isEmpty
public boolean isEmpty() -
copy
-
getPalette
public it.unimi.dsi.fastutil.ints.IntList getPalette() -
getBitArray
-