public class BlockStatePaletteRegistry<T> extends java.lang.Object implements IBlockStatePalette<T>
Constructor and Description |
---|
BlockStatePaletteRegistry(ObjectIntIdentityMap<T> p_i48965_1_,
T p_i48965_2_) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(T p_222626_1_) |
T |
get(int indexKey) |
int |
getSerializedSize() |
int |
idFor(T state) |
void |
read(ListNBT nbt) |
void |
read(PacketBuffer buf) |
void |
write(PacketBuffer buf) |
public BlockStatePaletteRegistry(ObjectIntIdentityMap<T> p_i48965_1_, T p_i48965_2_)
public int idFor(T state)
idFor
in interface IBlockStatePalette<T>
public boolean contains(T p_222626_1_)
contains
in interface IBlockStatePalette<T>
public T get(int indexKey)
get
in interface IBlockStatePalette<T>
public void read(PacketBuffer buf)
read
in interface IBlockStatePalette<T>
public void write(PacketBuffer buf)
write
in interface IBlockStatePalette<T>
public int getSerializedSize()
getSerializedSize
in interface IBlockStatePalette<T>
public void read(ListNBT nbt)
read
in interface IBlockStatePalette<T>