net.minecraft.network.packet.s2c.play

public class ChunkData

net.minecraft.network.protocol.game.ClientboundLevelChunkPacketData
net.minecraft.class_6603
net.minecraft.network.packet.s2c.play.ChunkData

Field summary

Modifier and TypeField
private static final PacketCodec<io.netty.buffer.ByteBuf, Map<Heightmap$Type, long[]>>
HEIGHTMAPS_STREAM_CODEC
field_56601
HEIGHTMAPS_PACKET_CODEC
private static final int
TWO_MEGABYTES
field_34862
MAX_SECTIONS_DATA_SIZE
public static final PacketCodec<RegistryByteBuf, ChunkData>
STREAM_CODEC
field_1_9518
field_1_9518
private final Map<Heightmap$Type, long[]>
heightmaps
field_34863
heightmap
private final byte[]
buffer
field_34864
sectionsData
private final List<ChunkData$BlockEntityData>
blockEntitiesData
field_34865
blockEntities

Constructor summary

ModifierConstructor
public (WorldChunk chunk)
private (Map<Heightmap$Type, long[]> heightmaps, byte[] buffer, List<ChunkData$BlockEntityData> blockEntitiesData)

Method summary

Modifier and TypeMethod
private static int
calculateChunkSize(LevelChunk chunk)
method_38589(class_2818 arg0)
getSectionsPacketSize(WorldChunk chunk)
private io.netty.buffer.ByteBuf
getWriteBuffer()
method_38595()
getWritableSectionsDataBuf()
public static void
extractChunkData(FriendlyByteBuf buffer, LevelChunk chunk)
method_38591(class_2540 arg0, class_2818 arg1)
writeSections(PacketByteBuf buf, WorldChunk chunk)
public Consumer<ChunkData$BlockEntityVisitor>
getBlockEntitiesTagsConsumer(int x, int z)
method_38587(int arg0, int arg1)
getBlockEntities(int x, int z)
private void
getBlockEntitiesTags(ClientboundLevelChunkPacketData$BlockEntityTagOutput output, int x, int z)
method_38593(class_6603$class_6605 arg0, int arg1, int arg2)
iterateBlockEntities(ChunkData$BlockEntityVisitor consumer, int x, int z)
public PacketByteBuf
getReadBuffer()
method_38586()
getSectionsDataBuf()
public Map<Heightmap$Type, long[]>
getHeightmaps()
method_38594()
getHeightmap()
private void
lambda$getBlockEntitiesTagsConsumer$0(int arg0, int arg1, ClientboundLevelChunkPacketData$BlockEntityTagOutput arg2)
method_38588(int arg0, int arg1, class_6603$class_6605 arg2)
method_38588(int arg0, int arg1, ChunkData$BlockEntityVisitor visitor)
private static long[]
lambda$new$1(Map$Entry arg0)
method_67558(Map$Entry arg0)
method_67558(Map$Entry entry)
private static boolean
lambda$new$0(Map$Entry arg0)
method_67559(Map$Entry arg0)
method_67559(Map$Entry entry)
private static List
lambda$static$3(ClientboundLevelChunkPacketData arg0)
method_1_9139(class_6603 arg0)
method_1_9139(ChunkData arg0)
private static byte[]
lambda$static$2(ClientboundLevelChunkPacketData arg0)
method_1_9138(class_6603 arg0)
method_1_9138(ChunkData arg0)
private static Map
lambda$static$1(ClientboundLevelChunkPacketData arg0)
method_1_9137(class_6603 arg0)
method_1_9137(ChunkData arg0)
private static Map
lambda$static$0(int arg0)
method_67557(int arg0)
method_67557(int size)