net.minecraft.world.level.chunk

public class PalettedContainer<T>

implements PaletteResize<T>

cgl
net.minecraft.world.level.chunk.PalettedContainer
net.minecraft.class_2841
net.minecraft.world.chunk.PalettedContainer
net.minecraft.util.palette.PalettedContainer
net.minecraft.server.v1_16_R2.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
defaultValue
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(nf arg0)
write(FriendlyByteBuf arg0)
method_12325(class_2540 arg0)
toPacket(PacketByteBuf buf)
func_186009_b(PacketBuffer arg0)
public void
a(mj 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(md 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(Predicate<T> arg0)
maybeHas(Predicate<T> arg0)
method_19526(Predicate<T> arg0)
hasAny(Predicate<T> arg0)
func_235963_a_(Predicate<T> arg0)
contains(Predicate<T> arg0)
public void
a(cgl$a<T> arg0)
count(PalettedContainer$CountConsumer<T> arg0)
method_21732(class_2841$class_4464<T> arg0)
count(PalettedContainer$CountConsumer<T> consumer)
func_225497_a(PalettedContainer$ICountConsumer<T> arg0)
public void
a(nf arg0)
read(FriendlyByteBuf arg0)
method_12326(class_2540 arg0)
fromPacket(PacketByteBuf buf)
func_186010_a(PacketBuffer arg0)