Class SChunkDataPacket
- java.lang.Object
-
- net.minecraft.network.play.server.SChunkDataPacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
public class SChunkDataPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Field Summary
Fields Modifier and Type Field Description private intavailableSectionsprivate int[]biomesprivate java.util.List<CompoundNBT>blockEntitiesTagsprivate byte[]bufferprivate booleanfullChunkprivate CompoundNBTheightmapsprivate intxprivate intz
-
Constructor Summary
Constructors Constructor Description SChunkDataPacket()SChunkDataPacket(Chunk p_i242081_1_, int p_i242081_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcalculateChunkSize(Chunk p_218709_1_, int p_218709_2_)intextractChunkData(PacketBuffer p_218708_1_, Chunk p_218708_2_, int p_218708_3_)intgetAvailableSections()int[]getBiomes()java.util.List<CompoundNBT>getBlockEntitiesTags()CompoundNBTgetHeightmaps()PacketBuffergetReadBuffer()private io.netty.buffer.ByteBufgetWriteBuffer()intgetX()intgetZ()voidhandle(IClientPlayNetHandler p_148833_1_)booleanisFullChunk()voidread(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, wait
-
Methods inherited from interface net.minecraft.network.IPacket
isSkippable
-
-
-
-
Field Detail
-
x
private int x
-
z
private int z
-
availableSections
private int availableSections
-
heightmaps
private CompoundNBT heightmaps
-
biomes
@Nullable private int[] biomes
-
buffer
private byte[] buffer
-
blockEntitiesTags
private java.util.List<CompoundNBT> blockEntitiesTags
-
fullChunk
private boolean fullChunk
-
-
Constructor Detail
-
SChunkDataPacket
public SChunkDataPacket()
-
SChunkDataPacket
public SChunkDataPacket(Chunk p_i242081_1_, int p_i242081_2_)
-
-
Method Detail
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
readin interfaceIPacket<IClientPlayNetHandler>- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
writein interfaceIPacket<IClientPlayNetHandler>- Throws:
java.io.IOException
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handlein interfaceIPacket<IClientPlayNetHandler>
-
getReadBuffer
public PacketBuffer getReadBuffer()
-
getWriteBuffer
private io.netty.buffer.ByteBuf getWriteBuffer()
-
extractChunkData
public int extractChunkData(PacketBuffer p_218708_1_, Chunk p_218708_2_, int p_218708_3_)
-
calculateChunkSize
protected int calculateChunkSize(Chunk p_218709_1_, int p_218709_2_)
-
getX
public int getX()
-
getZ
public int getZ()
-
getAvailableSections
public int getAvailableSections()
-
isFullChunk
public boolean isFullChunk()
-
getHeightmaps
public CompoundNBT getHeightmaps()
-
getBlockEntitiesTags
public java.util.List<CompoundNBT> getBlockEntitiesTags()
-
getBiomes
@Nullable public int[] getBiomes()
-
-