Class ChunkDecoder

java.lang.Object
ac.boar.anticheat.util.geyser.ChunkDecoder

public final class ChunkDecoder extends Object
  • Method Details

    • readLayer

      public static BlockStorage readLayer(io.netty.buffer.ByteBuf buf, int initialId)
    • skipSubChunk

      public static int skipSubChunk(io.netty.buffer.ByteBuf buf, int fallbackIndex, int dimensionMinY)
      Skips one serialized sub-chunk and does not decode it. This method moves the reader index of buf to the end of the sub-chunk, the same as readSubChunk(io.netty.buffer.ByteBuf, int, int, int) moves it. It returns the section Y index. Use this method to measure the byte range of a sub-chunk before a cache lookup. This method must stay in sync with readSubChunk.
    • readSubChunk

      public static ChunkDecoder.DecodedSubChunk readSubChunk(io.netty.buffer.ByteBuf buf, int airId, int fallbackIndex, int dimensionMinY)