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<NBTTagCompound,T> deserializerIn,
java.util.function.Function<T,NBTTagCompound> p_i48964_5_) |
| Modifier and Type | Method and Description |
|---|---|
T |
get(int indexKey) |
int |
getPaletteSize() |
int |
getSerializedSize() |
int |
idFor(T state) |
void |
read(NBTTagList nbt) |
void |
read(PacketBuffer buf) |
void |
write(PacketBuffer buf) |
void |
writePaletteToList(NBTTagList paletteList) |
public BlockStatePaletteHashMap(ObjectIntIdentityMap<T> backingRegistry, int bitsIn, net.minecraft.world.chunk.IBlockStatePaletteResizer<T> paletteResizerIn, java.util.function.Function<NBTTagCompound,T> deserializerIn, java.util.function.Function<T,NBTTagCompound> p_i48964_5_)
public int idFor(T state)
idFor 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(NBTTagList nbt)
read in interface IBlockStatePalette<T>public void writePaletteToList(NBTTagList paletteList)