net.minecraft.world.level.chunk

public class PalettedContainer<T>

implements PaletteResize<T>

bya
net.minecraft.world.level.chunk.PalettedContainer
net.minecraft.class_2841
net.minecraft.world.chunk.PalettedContainer
net.minecraft.world.chunk.BlockStateContainer
net.minecraft.server.v1_14_R1.DataPaletteBlock

Field summary

Modifier and TypeField
private final Palette<T>
b
globalPalette
field_12940
fallbackPalette
field_205521_b
private final PaletteResize<T>
c
dummyPaletteResize
field_12942
noOpPaletteResizeHandler
field_205522_c
private final IdMapper<T>
d
registry
field_12938
idList
field_205523_d
private final Function<CompoundTag, T>
e
reader
field_12943
elementDeserializer
field_205524_e
private final Function<T, CompoundTag>
f
writer
field_12939
elementSerializer
field_205525_f
private final T
g
defaultValue
field_12935
field_205526_g
protected BitStorage
a
storage
field_12941
data
field_186021_b
private Palette<T>
h
palette
field_12936
palette
field_186022_c
private int
i
bits
field_12934
paletteSize
field_186024_e
private final ReentrantLock
j
lock
field_12937
writeLock
field_210461_j

Constructor summary

ModifierConstructor
public (Palette<T> fallbackPalette, IdMapper<T> idList, Function<CompoundTag, T> elementDeserializer, Function<T, CompoundTag> elementSerializer, T defaultElement)

Method summary

Modifier and TypeMethod
public void
a()
acquire()
method_12334()
lock()
func_210459_b()
public void
b()
release()
method_12335()
unlock()
func_210460_c()
private static int
b(int arg0, int arg1, int arg2)
getIndex(int arg0, int arg1, int arg2)
method_12323(int arg0, int arg1, int arg2)
toIndex(int x, int y, int z)
func_186011_b(int arg0, int arg1, int arg2)
private void
b(int arg0)
setBits(int arg0)
method_12324(int arg0)
setPaletteSize(int size)
func_186012_b(int arg0)
public int
onResize(int arg0, T arg1)
onResize(int arg0, T arg1)
onResize(int arg0, T arg1)
onResize(int arg0, T arg1)
onResize(int arg0, T arg1)
public T
a(int arg0, int arg1, int arg2, T arg3)
getAndSet(int arg0, int arg1, int arg2, T arg3)
method_12328(int arg0, int arg1, int arg2, T arg3)
setSync(int x, int y, int z, T value)
func_222641_a(int arg0, int arg1, int arg2, T arg3)
setBlock(int arg0, int arg1, int arg2, T arg3)
public T
b(int arg0, int arg1, int arg2, T arg3)
getAndSetUnchecked(int arg0, int arg1, int arg2, T arg3)
method_16678(int arg0, int arg1, int arg2, T arg3)
set(int x, int y, int z, T value)
func_222639_b(int arg0, int arg1, int arg2, T arg3)
protected T
a(int arg0, T arg1)
getAndSet(int arg0, T arg1)
method_12336(int arg0, T arg1)
setAndGetOldValue(int index, T value)
func_222643_a(int arg0, T arg1)
protected void
b(int arg0, T arg1)
set(int arg0, T arg1)
method_12322(int arg0, T arg1)
set(int arg0, T arg1)
func_186014_b(int arg0, T arg1)
setBlockIndex(int arg0, T arg1)
public T
a(int arg0, int arg1, int arg2)
get(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)
protected T
a(int arg0)
get(int arg0)
method_12331(int arg0)
get(int index)
func_186015_a(int arg0)
public void
b(je arg0)
write(FriendlyByteBuf arg0)
method_12325(class_2540 arg0)
toPacket(PacketByteBuf buf)
func_186009_b(PacketBuffer arg0)
public void
a(ik arg0, long[] arg1)
read(ListTag arg0, long[] arg1)
method_12329(class_2499 arg0, long[] arg1)
read(ListTag paletteTag, long[] data)
func_222642_a(ListNBT arg0, long[] arg1)
public void
a(id arg0, String arg1, String arg2)
write(CompoundTag arg0, String arg1, String arg2)
method_12330(class_2487 arg0, String arg1, String arg2)
write(CompoundTag arg0, String arg1, String arg2)
func_196963_b(CompoundNBT arg0, String arg1, String arg2)
public int
c()
getSerializedSize()
method_12327()
getPacketSize()
func_186018_a()
public boolean
a(T arg0)
maybeHas(T arg0)
method_19526(T arg0)
func_222640_a(T arg0)
public void
a(bya$a<T> arg0)
count(PalettedContainer$CountConsumer<T> arg0)
method_21732(class_2841$class_4464<T> arg0)
func_225497_a(BlockStateContainer$ICountConsumer<T> arg0)
public void
a(je arg0)
read(FriendlyByteBuf arg0)
method_12326(class_2540 arg0)
fromPacket(PacketByteBuf buf)
func_186010_a(PacketBuffer arg0)