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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.viaversion.viaversion.api.minecraft.chunks.Chunk[]
    read(io.netty.buffer.ByteBuf byteBuf)
     
    protected boolean
    readHasSkyLight(io.netty.buffer.ByteBuf byteBuf)
    This method is here to allow overriding the code for 1.4.5 -> 1.4.7
    void
    write(io.netty.buffer.ByteBuf byteBuf, com.viaversion.viaversion.api.minecraft.chunks.Chunk[] chunks)
     
    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

    Methods inherited from class com.viaversion.viaversion.api.type.Type

    getBaseClass, getOutputClass, getTypeName, toString, write

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 buffer
      hasSkyLight - 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)