Class ClientboundLevelChunkPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundLevelChunkPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate BitSet
private int[]
private List<CompoundTag>
private byte[]
private CompoundTag
static int
private int
private int
-
Constructor Summary
ConstructorDescriptionClientboundLevelChunkPacket(FriendlyByteBuf p_178900_)
ClientboundLevelChunkPacket(LevelChunk p_178898_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
calculateChunkSize(LevelChunk p_178902_)
extractChunkData(FriendlyByteBuf p_178904_, LevelChunk p_178905_)
int[]
private io.netty.buffer.ByteBuf
int
getX()
int
getZ()
void
handle(ClientGamePacketListener p_132246_)
void
write(FriendlyByteBuf p_132249_)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable
-
Field Details
-
TWO_MEGABYTES
public static final int TWO_MEGABYTES- See Also:
- Constant Field Values
-
x
private final int x -
z
private final int z -
availableSections
-
heightmaps
-
biomes
private final int[] biomes -
buffer
private final byte[] buffer -
blockEntitiesTags
-
-
Constructor Details
-
ClientboundLevelChunkPacket
-
ClientboundLevelChunkPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getReadBuffer
-
getWriteBuffer
private io.netty.buffer.ByteBuf getWriteBuffer() -
extractChunkData
-
calculateChunkSize
-
getX
public int getX() -
getZ
public int getZ() -
getAvailableSections
-
getHeightmaps
-
getBlockEntitiesTags
-
getBiomes
public int[] getBiomes()
-