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.ChunkType
net.raphimc.vialegacy.protocol.release.r1_2_4_5tor1_3_1_2.types.ChunkType
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 ChunkType extends ChunkType
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    readUnusedInt(io.netty.buffer.ByteBuf byteBuf)
    This method is here to allow overriding the code for 1.2.5 -> 1.3.2 because it introduced an unused int
    void
    write(io.netty.buffer.ByteBuf byteBuf, com.viaversion.viaversion.api.minecraft.chunks.Chunk chunk)
     
    protected void
    writeUnusedInt(io.netty.buffer.ByteBuf byteBuf, com.viaversion.viaversion.api.minecraft.chunks.Chunk chunk)
    This method is here to allow overriding the code for 1.2.5 -> 1.3.2 because it introduced an unused int

    Methods inherited from class net.raphimc.vialegacy.protocol.release.r1_7_6_10tor1_8.types.ChunkType

    deserialize, getSize, getSize, read, serialize

    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

    • ChunkType

      public ChunkType()
  • Method Details

    • readUnusedInt

      protected void readUnusedInt(io.netty.buffer.ByteBuf byteBuf)
      Description copied from class: ChunkType
      This method is here to allow overriding the code for 1.2.5 -> 1.3.2 because it introduced an unused int
      Overrides:
      readUnusedInt in class ChunkType
      Parameters:
      byteBuf - The buffer
    • writeUnusedInt

      protected void writeUnusedInt(io.netty.buffer.ByteBuf byteBuf, com.viaversion.viaversion.api.minecraft.chunks.Chunk chunk)
      Description copied from class: ChunkType
      This method is here to allow overriding the code for 1.2.5 -> 1.3.2 because it introduced an unused int
      Overrides:
      writeUnusedInt in class ChunkType
      Parameters:
      byteBuf - The buffer
      chunk - The Chunk
    • write

      public void write(io.netty.buffer.ByteBuf byteBuf, com.viaversion.viaversion.api.minecraft.chunks.Chunk chunk)
      Specified by:
      write in interface com.viaversion.viaversion.api.type.ByteBufWriter<com.viaversion.viaversion.api.minecraft.chunks.Chunk>
      Overrides:
      write in class ChunkType