Class BulkChunkType
java.lang.Object
com.viaversion.viaversion.api.type.Type<com.viaversion.viaversion.api.minecraft.chunks.Chunk[]>
net.raphimc.vialegacy.protocol.release.r1_7_6_10tor1_8.types.BulkChunkType
- All Implemented Interfaces:
com.viaversion.viaversion.api.type.ByteBufReader<com.viaversion.viaversion.api.minecraft.chunks.Chunk[]>,com.viaversion.viaversion.api.type.ByteBufWriter<com.viaversion.viaversion.api.minecraft.chunks.Chunk[]>,com.viaversion.viaversion.api.type.CodecWriter<com.viaversion.viaversion.api.minecraft.chunks.Chunk[]>
- Direct Known Subclasses:
BulkChunkType
public class BulkChunkType
extends com.viaversion.viaversion.api.type.Type<com.viaversion.viaversion.api.minecraft.chunks.Chunk[]>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.viaversion.viaversion.api.minecraft.chunks.Chunk[]read(io.netty.buffer.ByteBuf byteBuf) protected booleanreadHasSkyLight(io.netty.buffer.ByteBuf byteBuf) This method is here to allow overriding the code for 1.4.5 -> 1.4.7voidwrite(io.netty.buffer.ByteBuf byteBuf, com.viaversion.viaversion.api.minecraft.chunks.Chunk[] chunks) protected voidwriteHasSkyLight(io.netty.buffer.ByteBuf byteBuf, boolean hasSkyLight) This method is here to allow overriding the code for 1.4.5 -> 1.4.7Methods inherited from class com.viaversion.viaversion.api.type.Type
getBaseClass, getOutputClass, getTypeName, toString, write
-
Constructor Details
-
BulkChunkType
public BulkChunkType()
-
-
Method Details
-
readHasSkyLight
protected boolean readHasSkyLight(io.netty.buffer.ByteBuf byteBuf) This method is here to allow overriding the code for 1.4.5 -> 1.4.7- Parameters:
byteBuf- The buffer- Returns:
- Read skylight array or not
-
writeHasSkyLight
protected void writeHasSkyLight(io.netty.buffer.ByteBuf byteBuf, boolean hasSkyLight) This method is here to allow overriding the code for 1.4.5 -> 1.4.7- Parameters:
byteBuf- The bufferhasSkyLight- Has skylight
-
read
public com.viaversion.viaversion.api.minecraft.chunks.Chunk[] read(io.netty.buffer.ByteBuf byteBuf) -
write
public void write(io.netty.buffer.ByteBuf byteBuf, com.viaversion.viaversion.api.minecraft.chunks.Chunk[] chunks)
-