Package net.minecraft.util
Interface BitStorage
- All Known Implementing Classes:
SimpleBitStorage,ZeroBitStorage
public interface BitStorage
-
Method Summary
Modifier and TypeMethodDescriptioncopy()intget(int index) Gets the entry at the given indexvoidgetAll(IntConsumer consumer) intgetAndSet(int index, int value) intgetBits()long[]getRaw()intgetSize()voidset(int index, int value) Sets the entry at the given location to the given valuevoidunpack(int[] array)
-
Method Details
-
getAndSet
int getAndSet(int index, int value) -
set
void set(int index, int value) Sets the entry at the given location to the given value -
get
int get(int index) Gets the entry at the given index -
getRaw
long[] getRaw() -
getSize
int getSize() -
getBits
int getBits() -
getAll
-
unpack
void unpack(int[] array) -
copy
BitStorage copy()
-