Class ClientboundLevelChunkPacketData
java.lang.Object
net.minecraft.network.protocol.game.ClientboundLevelChunkPacketData
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<ClientboundLevelChunkPacketData.BlockEntityInfo> private final byte[]
private final CompoundTag
private static final int
-
Constructor Summary
ConstructorDescriptionClientboundLevelChunkPacketData
(RegistryFriendlyByteBuf p_320343_, int p_195654_, int p_195655_) ClientboundLevelChunkPacketData
(LevelChunk p_195651_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
calculateChunkSize
(LevelChunk p_195665_) static void
extractChunkData
(FriendlyByteBuf p_195669_, LevelChunk p_195670_) private void
getBlockEntitiesTags
(ClientboundLevelChunkPacketData.BlockEntityTagOutput p_195675_, int p_195676_, int p_195677_) getBlockEntitiesTagsConsumer
(int p_195658_, int p_195659_) private io.netty.buffer.ByteBuf
void
write
(RegistryFriendlyByteBuf p_320863_)
-
Field Details
-
TWO_MEGABYTES
private static final int TWO_MEGABYTES- See Also:
-
heightmaps
-
buffer
private final byte[] buffer -
blockEntitiesData
-
-
Constructor Details
-
ClientboundLevelChunkPacketData
-
ClientboundLevelChunkPacketData
public ClientboundLevelChunkPacketData(RegistryFriendlyByteBuf p_320343_, int p_195654_, int p_195655_)
-
-
Method Details
-
write
-
calculateChunkSize
-
getWriteBuffer
private io.netty.buffer.ByteBuf getWriteBuffer() -
extractChunkData
-
getBlockEntitiesTagsConsumer
public Consumer<ClientboundLevelChunkPacketData.BlockEntityTagOutput> getBlockEntitiesTagsConsumer(int p_195658_, int p_195659_) -
getBlockEntitiesTags
private void getBlockEntitiesTags(ClientboundLevelChunkPacketData.BlockEntityTagOutput p_195675_, int p_195676_, int p_195677_) -
getReadBuffer
-
getHeightmaps
-