Class SChunkDataPacket
java.lang.Object
net.minecraft.network.play.server.SChunkDataPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int[]
private List<CompoundNBT>
private byte[]
private boolean
private CompoundNBT
private int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
int[]
private io.netty.buffer.ByteBuf
int
getX()
int
getZ()
void
handle
(IClientPlayNetHandler p_148833_1_) boolean
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 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:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
handle
- Specified by:
handle
in 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()
-