Class Pow2BitArray

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

public class Pow2BitArray extends Object implements BitArray
  • Method Details

    • set

      public void set(int index, int value)
      Sets the entry at the given location to the given value
      Specified by:
      set in interface BitArray
    • get

      public int get(int index)
      Gets the entry at the given index
      Specified by:
      get in interface BitArray
    • size

      public int size()
      Gets the long array that is used to store the data in this BitArray. This is useful for sending packet data.
      Specified by:
      size in interface BitArray
    • getWords

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

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

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