Package net.minecraft.util.collection
Class PackedIntegerArray
java.lang.Object
net.minecraft.util.collection.PackedIntegerArray
public class PackedIntegerArray extends Object
-
Field Summary
Fields Modifier and Type Field Description private int
elementBits
private static int[]
field_24078
private int
field_24079
private int
field_24080
private int
field_24081
private int
field_24082
private long
maxValue
private int
size
private long[]
storage
-
Constructor Summary
Constructors Constructor Description PackedIntegerArray(int elementBits, int size)
PackedIntegerArray(int elementBits, int size, long[] storage)
-
Method Summary
Modifier and Type Method Description void
forEach(IntConsumer consumer)
int
get(int index)
int
getSize()
long[]
getStorage()
private int
method_27284(int int2)
void
set(int index, int value)
int
setAndGetOldValue(int index, int value)
-
Field Details
-
field_24078
private static final int[] field_24078 -
storage
private final long[] storage -
elementBits
private final int elementBits -
maxValue
private final long maxValue -
size
private final int size -
field_24079
private final int field_24079 -
field_24080
private final int field_24080 -
field_24081
private final int field_24081 -
field_24082
private final int field_24082
-
-
Constructor Details
-
PackedIntegerArray
public PackedIntegerArray(int elementBits, int size) -
PackedIntegerArray
-
-
Method Details
-
method_27284
private int method_27284(int int2) -
setAndGetOldValue
public int setAndGetOldValue(int index, int value) -
set
public void set(int index, int value) -
get
public int get(int index) -
getStorage
public long[] getStorage() -
getSize
public int getSize() -
forEach
-