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