Class SChunkDataPacket
java.lang.Object
net.minecraft.network.play.server.SChunkDataPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate int[]private List<CompoundNBT>private byte[]private booleanprivate CompoundNBTprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcalculateChunkSize(Chunk p_218709_1_, int p_218709_2_) intextractChunkData(PacketBuffer p_218708_1_, Chunk p_218708_2_, int p_218708_3_) intint[]private io.netty.buffer.ByteBufintgetX()intgetZ()voidhandle(IClientPlayNetHandler p_148833_1_) booleanvoidread(PacketBuffer p_148837_1_) voidwrite(PacketBuffer p_148840_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.IPacket
isSkippable
-
Field Details
-
x
private int x -
z
private int z -
availableSections
private int availableSections -
heightmaps
-
biomes
@Nullable private int[] biomes -
buffer
private byte[] buffer -
blockEntitiesTags
-
fullChunk
private boolean fullChunk
-
-
Constructor Details
-
SChunkDataPacket
public SChunkDataPacket() -
SChunkDataPacket
-
-
Method Details
-
read
- Specified by:
readin interfaceIPacket<IClientPlayNetHandler>- Throws:
IOException
-
write
- Specified by:
writein interfaceIPacket<IClientPlayNetHandler>- Throws:
IOException
-
handle
- Specified by:
handlein interfaceIPacket<IClientPlayNetHandler>
-
getReadBuffer
-
getWriteBuffer
private io.netty.buffer.ByteBuf getWriteBuffer() -
extractChunkData
-
calculateChunkSize
-
getX
public int getX() -
getZ
public int getZ() -
getAvailableSections
public int getAvailableSections() -
isFullChunk
public boolean isFullChunk() -
getHeightmaps
-
getBlockEntitiesTags
-
getBiomes
@Nullable public int[] getBiomes()
-