public class BlockStatePaletteHashMap<T> extends java.lang.Object implements IBlockStatePalette<T>
Constructor and Description |
---|
BlockStatePaletteHashMap(ObjectIntIdentityMap<T> backingRegistry,
int bitsIn,
net.minecraft.world.chunk.IBlockStatePaletteResizer<T> paletteResizerIn,
java.util.function.Function<CompoundNBT,T> deserializerIn,
java.util.function.Function<T,CompoundNBT> p_i48964_5_) |
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) |
void |
writePaletteToList(ListNBT paletteList) |
public BlockStatePaletteHashMap(ObjectIntIdentityMap<T> backingRegistry, int bitsIn, net.minecraft.world.chunk.IBlockStatePaletteResizer<T> paletteResizerIn, java.util.function.Function<CompoundNBT,T> deserializerIn, java.util.function.Function<T,CompoundNBT> p_i48964_5_)
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 getPaletteSize()
public void read(ListNBT nbt)
read
in interface IBlockStatePalette<T>
public void writePaletteToList(ListNBT paletteList)