Package net.minecraft.util
Class ZeroBitStorage
java.lang.Object
net.minecraft.util.ZeroBitStorage
- All Implemented Interfaces:
BitStorage
-
Field Summary
Fields -
Constructor Summary
Constructors -
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)
-
Field Details
-
RAW
public static final long[] RAW -
size
private final int size
-
-
Constructor Details
-
ZeroBitStorage
public ZeroBitStorage(int pSize)
-
-
Method Details
-
getAndSet
public int getAndSet(int pIndex, int pValue) - Specified by:
getAndSetin interfaceBitStorage
-
set
public void set(int pIndex, int pValue) Sets the entry at the given location to the given value- Specified by:
setin interfaceBitStorage
-
get
public int get(int pIndex) Gets the entry at the given index- Specified by:
getin interfaceBitStorage
-
getRaw
public long[] getRaw()- Specified by:
getRawin interfaceBitStorage
-
getSize
public int getSize()- Specified by:
getSizein interfaceBitStorage
-
getBits
public int getBits()- Specified by:
getBitsin interfaceBitStorage
-
getAll
- Specified by:
getAllin interfaceBitStorage
-
unpack
public void unpack(int[] pArray) - Specified by:
unpackin interfaceBitStorage
-
copy
- Specified by:
copyin interfaceBitStorage
-