Class BitStorage
java.lang.Object
com.github.retrooper.packetevents.protocol.world.chunk.storage.BaseStorage
com.github.retrooper.packetevents.protocol.world.chunk.storage.BitStorage
-
Constructor Summary
ConstructorDescriptionBitStorage
(int bitsPerEntry, int size) BitStorage
(int bitsPerEntry, int size, long[] data) -
Method Summary
-
Constructor Details
-
BitStorage
public BitStorage(int bitsPerEntry, int size) -
BitStorage
public BitStorage(int bitsPerEntry, int size, long[] data)
-
-
Method Details
-
getData
public long[] getData()- Specified by:
getData
in classBaseStorage
-
getBitsPerEntry
public int getBitsPerEntry()- Specified by:
getBitsPerEntry
in classBaseStorage
-
getSize
public int getSize() -
get
public int get(int index) - Specified by:
get
in classBaseStorage
-
set
public void set(int index, int value) - Specified by:
set
in classBaseStorage
-