Package net.minecraft.util
Interface BitStorage
- All Known Implementing Classes:
SimpleBitStorage
,ZeroBitStorage
public interface BitStorage
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
int
get
(int pIndex) Gets the entry at the given indexvoid
getAll
(IntConsumer pConsumer) int
getAndSet
(int pIndex, int pValue) int
getBits()
long[]
getRaw()
int
getSize()
void
set
(int pIndex, int pValue) Sets the entry at the given location to the given valuevoid
unpack
(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()
-