Constructor and Description |
---|
PaletteArray(ObjectIntIdentityMap<T> p_i48962_1_,
int p_i48962_2_,
net.minecraft.util.palette.IResizeCallback<T> p_i48962_3_,
java.util.function.Function<CompoundNBT,T> p_i48962_4_) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(T p_222626_1_) |
T |
get(int indexKey) |
int |
getPaletteSize() |
int |
getSerializedSize() |
int |
idFor(T state) |
void |
read(ListNBT nbt) |
void |
read(PacketBuffer buf) |
void |
write(PacketBuffer buf) |
public PaletteArray(ObjectIntIdentityMap<T> p_i48962_1_, int p_i48962_2_, net.minecraft.util.palette.IResizeCallback<T> p_i48962_3_, java.util.function.Function<CompoundNBT,T> p_i48962_4_)
public void read(PacketBuffer buf)
public void write(PacketBuffer buf)
public int getSerializedSize()
getSerializedSize
in interface IPalette<T>
public int getPaletteSize()