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 int
availableSections
private int[]
biomes
private java.util.List<CompoundNBT>
blockEntitiesTags
private byte[]
buffer
private boolean
fullChunk
private CompoundNBT
heightmaps
private int
x
private int
z
-
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 int
calculateChunkSize(Chunk p_218709_1_, int p_218709_2_)
int
extractChunkData(PacketBuffer p_218708_1_, Chunk p_218708_2_, int p_218708_3_)
int
getAvailableSections()
int[]
getBiomes()
java.util.List<CompoundNBT>
getBlockEntitiesTags()
CompoundNBT
getHeightmaps()
PacketBuffer
getReadBuffer()
private io.netty.buffer.ByteBuf
getWriteBuffer()
int
getX()
int
getZ()
void
handle(IClientPlayNetHandler p_148833_1_)
boolean
isFullChunk()
void
read(PacketBuffer p_148837_1_)
void
write(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:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handle
in 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()
-
-