public class SPacketChunkData extends java.lang.Object implements Packet<INetHandlerPlayClient>
Modifier and Type | Field and Description |
---|---|
private int |
availableSections |
private byte[] |
buffer |
private int |
chunkX |
private int |
chunkZ |
private boolean |
fullChunk |
private java.util.List<NBTTagCompound> |
tileEntityTags |
Constructor and Description |
---|
SPacketChunkData() |
SPacketChunkData(Chunk chunkIn,
int changedSectionFilter) |
Modifier and Type | Method and Description |
---|---|
protected int |
calculateChunkSize(Chunk chunkIn,
boolean p_189556_2_,
int p_189556_3_) |
int |
extractChunkData(PacketBuffer buf,
Chunk chunkIn,
boolean writeSkylight,
int changedSectionFilter) |
int |
getChunkX() |
int |
getChunkZ() |
int |
getExtractedSize() |
PacketBuffer |
getReadBuffer() |
java.util.List<NBTTagCompound> |
getTileEntityTags() |
private io.netty.buffer.ByteBuf |
getWriteBuffer() |
boolean |
isFullChunk() |
void |
processPacket(INetHandlerPlayClient handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
private int chunkX
private int chunkZ
private int availableSections
private byte[] buffer
private java.util.List<NBTTagCompound> tileEntityTags
private boolean fullChunk
public SPacketChunkData()
public SPacketChunkData(Chunk chunkIn, int changedSectionFilter)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void processPacket(INetHandlerPlayClient handler)
processPacket
in interface Packet<INetHandlerPlayClient>
public PacketBuffer getReadBuffer()
private io.netty.buffer.ByteBuf getWriteBuffer()
public int extractChunkData(PacketBuffer buf, Chunk chunkIn, boolean writeSkylight, int changedSectionFilter)
protected int calculateChunkSize(Chunk chunkIn, boolean p_189556_2_, int p_189556_3_)
public int getChunkX()
public int getChunkZ()
public int getExtractedSize()
public boolean isFullChunk()
public java.util.List<NBTTagCompound> getTileEntityTags()