Class SingletonBitArray

java.lang.Object
org.geysermc.geyser.level.chunk.bitarray.SingletonBitArray
All Implemented Interfaces:
BitArray

public class SingletonBitArray extends Object implements BitArray
  • Field Details

  • Constructor Details

    • SingletonBitArray

      public SingletonBitArray()
  • Method Details

    • set

      public void set(int index, int value)
      Specified by:
      set in interface BitArray
    • get

      public int get(int index)
      Specified by:
      get in interface BitArray
    • size

      public int size()
      Specified by:
      size in interface BitArray
    • writeSizeToNetwork

      public void writeSizeToNetwork(io.netty.buffer.ByteBuf buffer, int size)
      Description copied from interface: BitArray
      Overridden if the bit array implementation does not require size.
      Specified by:
      writeSizeToNetwork in interface BitArray
    • getWords

      public int[] getWords()
      Specified by:
      getWords in interface BitArray
    • getVersion

      public BitArrayVersion getVersion()
      Specified by:
      getVersion in interface BitArray
    • copy

      public SingletonBitArray copy()
      Specified by:
      copy in interface BitArray