Modifier and Type | Field and Description |
---|---|
private T |
defaultState |
private ObjectIntIdentityMap<T> |
registry |
Constructor and Description |
---|
PaletteIdentity(ObjectIntIdentityMap<T> p_i48965_1_,
T p_i48965_2_) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(T value) |
T |
get(int indexKey) |
int |
getSerializedSize() |
int |
idFor(T state) |
void |
read(ListNBT nbt) |
void |
read(PacketBuffer buf) |
void |
write(PacketBuffer buf) |
private final ObjectIntIdentityMap<T> registry
private final T defaultState
public PaletteIdentity(ObjectIntIdentityMap<T> p_i48965_1_, T p_i48965_2_)
public void read(PacketBuffer buf)
public void write(PacketBuffer buf)
public int getSerializedSize()
getSerializedSize
in interface IPalette<T>