Class Column
java.lang.Object
com.github.retrooper.packetevents.protocol.world.chunk.Column
-
Constructor Summary
ConstructorsConstructorDescriptionColumn
(int x, int z, boolean fullChunk, BaseChunk[] chunks, TileEntity[] tileEntities) Column
(int chunkX, int chunkZ, boolean fullChunk, BaseChunk[] chunks, TileEntity[] tileEntities, byte[] biomeDataBytes) Column
(int x, int z, boolean fullChunk, BaseChunk[] chunks, TileEntity[] tileEntities, int[] biomeData) Column
(int x, int z, boolean fullChunk, BaseChunk[] chunks, TileEntity[] tileEntities, NBTCompound heightmapsNbt) Column
(int x, int z, boolean fullChunk, BaseChunk[] chunks, TileEntity[] tileEntities, NBTCompound heightmapsNbt, byte[] biomeData) Column
(int x, int z, boolean fullChunk, BaseChunk[] chunks, TileEntity[] tileEntities, NBTCompound heightmapsNbt, int[] biomeDataInts) Column
(int x, int z, boolean fullChunk, BaseChunk[] chunks, TileEntity[] tileEntities, Map<HeightmapType, long[]> heightmaps) Added with 1.21.5 because of new heightmaps format -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
int[]
Map
<HeightmapType, long[]> May be empty if heightmaps aren't present; this lazily parses the heightmaps nbt to a map, if below 1.21.5Deprecated.int
getX()
int
getZ()
boolean
boolean
boolean
-
Constructor Details
-
Column
public Column(int x, int z, boolean fullChunk, BaseChunk[] chunks, TileEntity[] tileEntities, int[] biomeData) -
Column
-
Column
public Column(int x, int z, boolean fullChunk, BaseChunk[] chunks, TileEntity[] tileEntities, NBTCompound heightmapsNbt) -
Column
public Column(int x, int z, boolean fullChunk, BaseChunk[] chunks, TileEntity[] tileEntities, Map<HeightmapType, long[]> heightmaps) Added with 1.21.5 because of new heightmaps format -
Column
public Column(int x, int z, boolean fullChunk, BaseChunk[] chunks, TileEntity[] tileEntities, NBTCompound heightmapsNbt, int[] biomeDataInts) -
Column
public Column(int x, int z, boolean fullChunk, BaseChunk[] chunks, TileEntity[] tileEntities, NBTCompound heightmapsNbt, byte[] biomeData) -
Column
public Column(int chunkX, int chunkZ, boolean fullChunk, BaseChunk[] chunks, TileEntity[] tileEntities, byte[] biomeDataBytes)
-
-
Method Details
-
getX
public int getX() -
getZ
public int getZ() -
isFullChunk
public boolean isFullChunk() -
getChunks
-
getTileEntities
-
hasHeightMaps
public boolean hasHeightMaps() -
getHeightMaps
Deprecated.Heightmaps are no longer serialized to nbt as of 1.21.5, use the common methodgetHeightmaps()
instead -
getHeightmaps
May be empty if heightmaps aren't present; this lazily parses the heightmaps nbt to a map, if below 1.21.5 -
hasBiomeData
public boolean hasBiomeData() -
getBiomeDataInts
public int[] getBiomeDataInts() -
getBiomeDataBytes
public byte[] getBiomeDataBytes()
-
getHeightmaps()
instead