Class ChunkDataS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.ChunkDataS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class ChunkDataS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private BiomeArraybiomeArrayprivate List<CompoundTag>blockEntitiesprivate intchunkXprivate intchunkZprivate byte[]dataprivate booleanfield_25720private CompoundTagheightmapsprivate booleanisFullChunkprivate intverticalStripBitmask -
Constructor Summary
Constructors Constructor Description ChunkDataS2CPacket()ChunkDataS2CPacket(WorldChunk chunk, int includedSectionsMask, boolean bool) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)BiomeArraygetBiomeArray()List<CompoundTag>getBlockEntityTagList()protected intgetDataSize(WorldChunk chunk, int includedSectionsMark)CompoundTaggetHeightmaps()PacketByteBufgetReadBuffer()intgetVerticalStripBitmask()private io.netty.buffer.ByteBufgetWriteBuffer()intgetX()intgetZ()booleanisFullChunk()booleanmethod_30144()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)intwriteData(PacketByteBuf packetByteBuf, WorldChunk chunk, int includedSectionsMask)
-
Field Details
-
chunkX
private int chunkX -
chunkZ
private int chunkZ -
verticalStripBitmask
private int verticalStripBitmask -
heightmaps
-
biomeArray
-
data
private byte[] data -
blockEntities
-
isFullChunk
private boolean isFullChunk -
field_25720
private boolean field_25720
-
-
Constructor Details
-
ChunkDataS2CPacket
public ChunkDataS2CPacket() -
ChunkDataS2CPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getReadBuffer
-
getWriteBuffer
private io.netty.buffer.ByteBuf getWriteBuffer() -
writeData
-
getDataSize
-
getX
@Environment(CLIENT) public int getX() -
getZ
@Environment(CLIENT) public int getZ() -
getVerticalStripBitmask
@Environment(CLIENT) public int getVerticalStripBitmask() -
isFullChunk
public boolean isFullChunk() -
method_30144
@Environment(CLIENT) public boolean method_30144() -
getHeightmaps
-
getBlockEntityTagList
-
getBiomeArray
-