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
net.raphimc.vialegacy.protocol.release.r1_4_4_5tor1_4_6_7.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[]>

public class BulkChunkType extends BulkChunkType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    readHasSkyLight(io.netty.buffer.ByteBuf byteBuf)
    This method is here to allow overriding the code for 1.4.5 -> 1.4.7
    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 net.raphimc.vialegacy.protocol.release.r1_7_6_10tor1_8.types.BulkChunkType

    read, write

    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)
      Description copied from class: BulkChunkType
      This method is here to allow overriding the code for 1.4.5 -> 1.4.7
      Overrides:
      readHasSkyLight in class BulkChunkType
      Parameters:
      byteBuf - The buffer
      Returns:
      Read skylight array or not
    • writeHasSkyLight

      protected void writeHasSkyLight(io.netty.buffer.ByteBuf byteBuf, boolean hasSkyLight)
      Description copied from class: BulkChunkType
      This method is here to allow overriding the code for 1.4.5 -> 1.4.7
      Overrides:
      writeHasSkyLight in class BulkChunkType
      Parameters:
      byteBuf - The buffer
      hasSkyLight - Has skylight