Class Chunk_v1_9
java.lang.Object
com.github.retrooper.packetevents.protocol.world.chunk.impl.v1_16.Chunk_v1_9
- All Implemented Interfaces:
BaseChunk
Handles chunk data from 1.9 to 1.17
-
Constructor Summary
ConstructorsConstructorDescriptionChunk_v1_9
(int blockCount, DataPalette dataPalette) Chunk_v1_9
(int blockCount, DataPalette dataPalette, @Nullable NibbleArray3d blockLight, @Nullable NibbleArray3d skyLight) Chunk_v1_9
(NetStreamInput in, boolean hasBlockLight, boolean hasSkyLight) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionint
getBlockId
(int x, int y, int z) @Nullable NibbleArray3d
@Nullable NibbleArray3d
boolean
isEmpty()
static Chunk_v1_9
read
(PacketWrapper<?> wrapper, boolean hasBlockLight, boolean hasSkyLight) void
set
(int x, int y, int z, int state) void
setBlockLight
(@Nullable NibbleArray3d blockLight) void
setSkyLight
(@Nullable NibbleArray3d skyLight) static void
write
(NetStreamOutput out, Chunk_v1_9 chunk) Deprecated.usewrite(PacketWrapper, Chunk_v1_9)
insteadstatic void
write
(PacketWrapper<?> wrapper, Chunk_v1_9 chunk)
-
Constructor Details
-
Chunk_v1_9
-
Chunk_v1_9
public Chunk_v1_9(int blockCount, DataPalette dataPalette, @Nullable @Nullable NibbleArray3d blockLight, @Nullable @Nullable NibbleArray3d skyLight) -
Chunk_v1_9
Deprecated.useread(PacketWrapper, boolean, boolean)
instead
-
-
Method Details
-
read
-
write
-
write
Deprecated.usewrite(PacketWrapper, Chunk_v1_9)
instead -
getBlockId
public int getBlockId(int x, int y, int z) - Specified by:
getBlockId
in interfaceBaseChunk
-
set
public void set(int x, int y, int z, int state) -
isEmpty
public boolean isEmpty() -
getSkyLight
-
setSkyLight
-
getBlockLight
-
setBlockLight
-
read(PacketWrapper, boolean, boolean)
instead