Package net.minecraft.util.palette
Class ArrayPalette<T>
java.lang.Object
net.minecraft.util.palette.ArrayPalette<T>
- All Implemented Interfaces:
IPalette<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final Function<CompoundNBT,
T> private final ObjectIntIdentityMap<T>
private final IResizeCallback<T>
private int
private final T[]
-
Constructor Summary
ConstructorDescriptionArrayPalette
(ObjectIntIdentityMap<T> p_i48962_1_, int p_i48962_2_, IResizeCallback<T> p_i48962_3_, Function<CompoundNBT, T> p_i48962_4_) -
Method Summary
Modifier and TypeMethodDescriptionint
int
getSize()
int
boolean
void
void
read
(PacketBuffer p_186038_1_) valueFor
(int p_186039_1_) void
write
(PacketBuffer p_186037_1_)
-
Field Details
-
registry
-
values
-
resizeHandler
-
reader
-
bits
private final int bits -
size
private int size
-
-
Constructor Details
-
ArrayPalette
public ArrayPalette(ObjectIntIdentityMap<T> p_i48962_1_, int p_i48962_2_, IResizeCallback<T> p_i48962_3_, Function<CompoundNBT, T> p_i48962_4_)
-
-
Method Details
-
idFor
-
maybeHas
-
valueFor
-
read
-
write
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfaceIPalette<T>
-
getSize
public int getSize() -
read
-