net.minecraft.world.chunk

public class PalettedContainer<T>

implements PaletteResizer<T>

bnq
net.minecraft.class_2743
net.minecraft.world.chunk.PalettedContainer
net.minecraft.world.chunk.BlockStateContainer
net.minecraft.world.chunk.BlockStateContainer

Field summary

Modifier and TypeField
private final Palette<T>
b
field_18902
globalPalette
field_205521_b
field_205521_b
private final PaletteResizer<T>
c
field_18903
dummyPaletteResize
field_205522_c
field_205522_c
private final Id2ObjectBiMap<T>
d
field_18904
registry
field_205523_d
registry
private final Function<NbtCompound, T>
e
field_18905
reader
field_205524_e
deserializer
private final Function<T, NbtCompound>
f
field_18906
writer
field_205525_f
serializer
private final T
g
field_18907
defaultValue
field_205526_g
defaultState
protected BitStorage
a
field_12904
storage
field_186021_b
storage
private Palette<T>
h
field_12905
palette
field_186022_c
palette
private int
i
field_12907
bits
field_186024_e
bits
private final ReentrantLock
j
field_18908
lock
field_210461_j
lock

Constructor summary

ModifierConstructor
public (Palette<T> globalPalette, Id2ObjectBiMap<T> registry, Function<NbtCompound, T> reader, Function<T, NbtCompound> writer, T defaultValue)

Method summary

Modifier and TypeMethod
private void
b()
method_17105()
acquire()
func_210459_b()
lock()
private void
c()
method_17108()
release()
func_210460_c()
unlock()
private static int
b(int arg0, int arg1, int arg2)
method_11758(int arg0, int arg1, int arg2)
getIndex(int x, int y, int z)
func_186011_b(int arg0, int arg1, int arg2)
getIndex(int x, int y, int z)
private void
b(int arg0)
method_11757(int arg0)
setBits(int bits)
func_186012_b(int arg0)
setBits(int bitsIn)
public int
onResize(int arg0, T arg1)
onResize(int arg0, T arg1)
resize(int arg0, T arg1)
onResize(int arg0, T arg1)
onResize(int arg0, T arg1)
public void
a(int arg0, int arg1, int arg2, T arg3)
method_17101(int arg0, int arg1, int arg2, T arg3)
set(int x, int y, int z, T value)
func_186013_a(int arg0, int arg1, int arg2, T arg3)
set(int x, int y, int z, T state)
protected void
a(int arg0, T arg1)
method_17102(int arg0, T arg1)
set(int index, T value)
func_186014_b(int arg0, T arg1)
set(int index, T state)
public T
a(int arg0, int arg1, int arg2)
method_17100(int arg0, int arg1, int arg2)
get(int x, int y, int z)
func_186016_a(int arg0, int arg1, int arg2)
get(int x, int y, int z)
protected T
a(int arg0)
method_17099(int arg0)
get(int index)
func_186015_a(int arg0)
get(int index)
public void
b(hy arg0)
method_11760(class_1967 arg0)
write(PacketByteBuf buffer)
func_186009_b(PacketBuffer arg0)
write(PacketBuffer buf)
public void
a(gy arg0, String arg1, String arg2)
method_17103(class_322 arg0, String arg1, String arg2)
read(NbtCompound nbt, String paletteKey, String valuesKey)
func_196964_a(NBTTagCompound arg0, String arg1, String arg2)
readBlockStates(NBTTagCompound nbt, String paletteKey, String blockStatesKey)
public void
b(gy arg0, String arg1, String arg2)
method_17107(class_322 arg0, String arg1, String arg2)
write(NbtCompound nbt, String paletteKey, String valuesKey)
func_196963_b(NBTTagCompound arg0, String arg1, String arg2)
writeChunkPalette(NBTTagCompound compound, String paletteName, String paletteDataName)
public int
a()
method_11750()
getSerializedSize()
func_186018_a()
getSerializedSize()
public void
a(hy arg0)
method_11754(class_1967 arg0)
read(PacketByteBuf buffer)
func_186010_a(PacketBuffer arg0)
read(PacketBuffer buf)