public class BlockStateContainer<T>
extends java.lang.Object
Constructor and Description |
---|
BlockStateContainer(IBlockStatePalette<T> p_i48961_1_,
ObjectIntIdentityMap<T> p_i48961_2_,
java.util.function.Function<NBTTagCompound,T> p_i48961_3_,
java.util.function.Function<T,NBTTagCompound> p_i48961_4_,
T p_i48961_5_) |
Modifier and Type | Method and Description |
---|---|
protected T |
get(int index) |
T |
get(int x,
int y,
int z) |
int |
getSerializedSize() |
int |
onResize(int p_onResize_1_,
T p_onResize_2_) |
void |
read(PacketBuffer buf) |
void |
readBlockStates(NBTTagCompound nbt,
java.lang.String paletteKey,
java.lang.String blockStatesKey) |
void |
set(int x,
int y,
int z,
T state) |
protected void |
set(int index,
T state) |
void |
write(PacketBuffer buf) |
void |
writeChunkPalette(NBTTagCompound compound,
java.lang.String paletteName,
java.lang.String paletteDataName) |
protected BitArray storage
public BlockStateContainer(IBlockStatePalette<T> p_i48961_1_, ObjectIntIdentityMap<T> p_i48961_2_, java.util.function.Function<NBTTagCompound,T> p_i48961_3_, java.util.function.Function<T,NBTTagCompound> p_i48961_4_, T p_i48961_5_)
public int onResize(int p_onResize_1_, T p_onResize_2_)
public void set(int x, int y, int z, T state)
protected void set(int index, T state)
public T get(int x, int y, int z)
protected T get(int index)
public void read(PacketBuffer buf)
public void write(PacketBuffer buf)
public void readBlockStates(NBTTagCompound nbt, java.lang.String paletteKey, java.lang.String blockStatesKey)
public void writeChunkPalette(NBTTagCompound compound, java.lang.String paletteName, java.lang.String paletteDataName)
public int getSerializedSize()