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()
int
get
(int p_184794_) Gets the entry at the given indexvoid
getAll
(IntConsumer p_184799_) int
getAndSet
(int p_184796_, int p_184797_) int
getBits()
long[]
getRaw()
int
getSize()
void
set
(int p_184802_, int p_184803_) Sets the entry at the given location to the given valuevoid
unpack
(int[] p_198170_)
-
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 p_184796_, int p_184797_) - Specified by:
getAndSet
in interfaceBitStorage
-
set
public void set(int p_184802_, int p_184803_) Description copied from interface:BitStorage
Sets the entry at the given location to the given value- Specified by:
set
in interfaceBitStorage
-
get
public int get(int p_184794_) Description copied from interface:BitStorage
Gets the entry at the given index- Specified by:
get
in interfaceBitStorage
-
getRaw
public long[] getRaw()- Specified by:
getRaw
in interfaceBitStorage
-
getSize
public int getSize()- Specified by:
getSize
in interfaceBitStorage
-
getBits
public int getBits()- Specified by:
getBits
in interfaceBitStorage
-
getAll
- Specified by:
getAll
in interfaceBitStorage
-
unpack
public void unpack(int[] p_198170_) - Specified by:
unpack
in interfaceBitStorage
-
copy
- Specified by:
copy
in interfaceBitStorage
-