Class ClientboundLevelChunkPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundLevelChunkPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BitSetprivate int[]private List<CompoundTag>private byte[]private CompoundTagstatic intprivate intprivate int -
Constructor Summary
ConstructorsConstructorDescriptionClientboundLevelChunkPacket(FriendlyByteBuf p_178900_)ClientboundLevelChunkPacket(LevelChunk p_178898_) -
Method Summary
Modifier and TypeMethodDescriptionprotected intcalculateChunkSize(LevelChunk p_178902_)extractChunkData(FriendlyByteBuf p_178904_, LevelChunk p_178905_)int[]private io.netty.buffer.ByteBufintgetX()intgetZ()voidhandle(ClientGamePacketListener p_132246_)voidwrite(FriendlyByteBuf p_132249_)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
writein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein 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()
-