Package net.minecraft.util
Class BitArray
- java.lang.Object
-
- net.minecraft.util.BitArray
-
public class BitArray extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
bits
private long[]
data
private int
divideAdd
private int
divideMul
private int
divideShift
private static int[]
MAGIC
private long
mask
private int
size
private int
valuesPerLong
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
cellIndex(int p_232986_1_)
int
get(int p_188142_1_)
void
getAll(java.util.function.IntConsumer p_225421_1_)
int
getAndSet(int p_219789_1_, int p_219789_2_)
long[]
getRaw()
int
getSize()
void
set(int p_188141_1_, int p_188141_2_)
-
-
-
Field Detail
-
MAGIC
private static final int[] MAGIC
-
data
private final long[] data
-
bits
private final int bits
-
mask
private final long mask
-
size
private final int size
-
valuesPerLong
private final int valuesPerLong
-
divideMul
private final int divideMul
-
divideAdd
private final int divideAdd
-
divideShift
private final int divideShift
-
-
Method Detail
-
cellIndex
private int cellIndex(int p_232986_1_)
-
getAndSet
public int getAndSet(int p_219789_1_, int p_219789_2_)
-
set
public void set(int p_188141_1_, int p_188141_2_)
-
get
public int get(int p_188142_1_)
-
getRaw
public long[] getRaw()
-
getSize
public int getSize()
-
getAll
public void getAll(java.util.function.IntConsumer p_225421_1_)
-
-