public class BlockStatePaletteLinear<T> extends java.lang.Object implements IBlockStatePalette<T>
Constructor and Description |
---|
BlockStatePaletteLinear(ObjectIntIdentityMap<T> p_i48962_1_,
int p_i48962_2_,
net.minecraft.world.chunk.IBlockStatePaletteResizer<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_) |
int |
func_202137_b() |
T |
get(int indexKey) |
int |
getSerializedSize() |
int |
idFor(T state) |
void |
read(ListNBT nbt) |
void |
read(PacketBuffer buf) |
void |
write(PacketBuffer buf) |
public BlockStatePaletteLinear(ObjectIntIdentityMap<T> p_i48962_1_, int p_i48962_2_, net.minecraft.world.chunk.IBlockStatePaletteResizer<T> p_i48962_3_, java.util.function.Function<CompoundNBT,T> p_i48962_4_)
public int idFor(T state)
idFor
in interface IBlockStatePalette<T>
public boolean contains(T p_222626_1_)
contains
in interface IBlockStatePalette<T>
@Nullable 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 int func_202137_b()
public void read(ListNBT nbt)
read
in interface IBlockStatePalette<T>