net.minecraft.world.chunk

public class PalettedContainer<T>

implements PaletteResizer<T>

bxr
net.minecraft.class_2841
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_12940
globalPalette
field_205521_b
field_205521_b
private final PaletteResizer<T>
c
field_12942
dummyPaletteResize
field_205522_c
field_205522_c
private final Id2ObjectBiMap<T>
d
field_12938
registry
field_205523_d
field_205523_d
private final Function<NbtCompound, T>
e
field_12943
reader
field_205524_e
field_205524_e
private final Function<T, NbtCompound>
f
field_12939
writer
field_205525_f
field_205525_f
private final T
g
field_12935
defaultValue
field_205526_g
field_205526_g
protected BitStorage
a
field_12941
storage
field_186021_b
field_186021_b
private Palette<T>
h
field_12936
palette
field_186022_c
field_186022_c
private int
i
field_12934
bits
field_186024_e
field_186024_e
private final ReentrantLock
j
field_12937
lock
field_210461_j
field_210461_j

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
public void
a()
method_12334()
acquire()
func_210459_b()
lock()
public void
b()
method_12335()
release()
func_210460_c()
unlock()
private static int
b(int arg0, int arg1, int arg2)
method_12323(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_12324(int arg0)
setBits(int bits)
func_186012_b(int arg0)
setBits(int bitsIn)
public int
onResize(int arg0, T arg1)
m_89081339(int arg0, T arg1)
resize(int arg0, T arg1)
onResize(int arg0, T arg1)
public T
a(int arg0, int arg1, int arg2, T arg3)
method_12328(int arg0, int arg1, int arg2, T arg3)
set(int x, int y, int z, T value)
func_222641_a(int arg0, int arg1, int arg2, T arg3)
func_222641_a(int arg0, int arg1, int arg2, T arg3)
public T
b(int arg0, int arg1, int arg2, T arg3)
method_16678(int arg0, int arg1, int arg2, T arg3)
setUnchecked(int x, int y, int z, T value)
func_222639_b(int arg0, int arg1, int arg2, T arg3)
func_222639_b(int arg0, int arg1, int arg2, T arg3)
protected T
a(int arg0, T arg1)
method_12336(int arg0, T arg1)
getAndSet(int index, T value)
func_222643_a(int arg0, T arg1)
func_222643_a(int arg0, T arg1)
protected void
b(int arg0, T arg1)
method_12322(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_12321(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_12331(int arg0)
get(int index)
func_186015_a(int arg0)
get(int index)
public void
b(jc arg0)
method_12325(class_2540 arg0)
write(PacketByteBuf buffer)
func_186009_b(PacketBuffer arg0)
write(PacketBuffer buf)
public void
a(ii arg0, long[] arg1)
method_12329(class_2499 arg0, long[] arg1)
read(NbtList nbt, long[] data)
func_222642_a(ListNBT arg0, long[] arg1)
func_222642_a(ListNBT arg0, long[] arg1)
public void
a(ib arg0, String arg1, String arg2)
method_12330(class_2487 arg0, String arg1, String arg2)
write(NbtCompound nbt, String paletteKey, String valuesKey)
func_196963_b(CompoundNBT arg0, String arg1, String arg2)
writeChunkPalette(CompoundNBT compound, String paletteName, String paletteDataName)
public int
c()
method_12327()
getSerializedSize()
func_186018_a()
getSerializedSize()
public boolean
a(T arg0)
method_19526(T arg0)
maybeContains(T value)
func_222640_a(T arg0)
func_222640_a(T arg0)
public void
a(jc arg0)
method_12326(class_2540 arg0)
read(PacketByteBuf buffer)
func_186010_a(PacketBuffer arg0)
read(PacketBuffer buf)