net.minecraft.world.level.chunk

public class PalettedContainer<T>

implements PaletteResize<T>, PalettedContainerRO<T>

eai
net.minecraft.world.level.chunk.PalettedContainer
net.minecraft.class_2841
net.minecraft.world.chunk.PalettedContainer
net.minecraft.world.level.chunk.DataPaletteBlock

Field summary

Modifier and TypeField
private static final int
a
MIN_PALETTE_BITS
field_34557
field_34557
private final PaletteResize<T>
b
dummyPaletteResize
field_34558
dummyListener
private final IdMap<T>
c
registry
field_34559
idList
private volatile PalettedContainer$Data<T>
d
data
field_34560
data
private final PalettedContainer$Strategy
e
strategy
field_34561
paletteProvider
private final ThreadingDetector
f
threadingDetector
field_36300
lockHelper

Constructor summary

ModifierConstructor
public (IdMap<T> idList, PalettedContainer$Strategy paletteProvider, PalettedContainer$Configuration<T> dataProvider, BitStorage storage, List<T> paletteEntries)
private (IdMap<T> idList, PalettedContainer$Strategy paletteProvider, PalettedContainer$Data<T> data)
private (PalettedContainer<T> container)
public (IdMap<T> idList, T object, PalettedContainer$Strategy paletteProvider)

Method summary

Modifier and TypeMethod
public void
a()
acquire()
method_12334()
lock()
public void
b()
release()
method_12335()
unlock()
public static <T> com.mojang.serialization.Codec<PalettedContainer<T>>
a(jv<T> arg0, com.mojang.serialization.Codec<T> arg1, eai$d arg2, T arg3)
codecRW(IdMap<T> arg0, com.mojang.serialization.Codec<T> arg1, PalettedContainer$Strategy arg2, T arg3)
method_44343(class_2359<T> arg0, com.mojang.serialization.Codec<T> arg1, class_2841$class_6563 arg2, T arg3)
createPalettedContainerCodec(IndexedIterable<T> idList, com.mojang.serialization.Codec<T> entryCodec, PalettedContainer$PaletteProvider paletteProvider, T defaultValue)
public static <T> com.mojang.serialization.Codec<PalettedContainerRO<T>>
b(jv<T> arg0, com.mojang.serialization.Codec<T> arg1, eai$d arg2, T arg3)
codecRO(IdMap<T> arg0, com.mojang.serialization.Codec<T> arg1, PalettedContainer$Strategy arg2, T arg3)
method_44347(class_2359<T> arg0, com.mojang.serialization.Codec<T> arg1, class_2841$class_6563 arg2, T arg3)
createReadableContainerCodec(IndexedIterable<T> idList, com.mojang.serialization.Codec<T> entryCodec, PalettedContainer$PaletteProvider paletteProvider, T defaultValue)
private static <T, C extends PalettedContainerRO<T>> com.mojang.serialization.Codec<C>
a(jv<T> arg0, com.mojang.serialization.Codec<T> arg1, eai$d arg2, T arg3, eaj$b<T, C> arg4)
codec(IdMap<T> arg0, com.mojang.serialization.Codec<T> arg1, PalettedContainer$Strategy arg2, T arg3, PalettedContainerRO$Unpacker<T, C> arg4)
method_38298(class_2359<T> arg0, com.mojang.serialization.Codec<T> arg1, class_2841$class_6563 arg2, T arg3, class_7522$class_7523<T, C> arg4)
createCodec(IndexedIterable<T> idList, com.mojang.serialization.Codec<T> entryCodec, PalettedContainer$PaletteProvider provider, T defaultValue, ReadableContainer$Reader<T, C> reader)
private PalettedContainer$Data<T>
a(eai$c<T> arg0, int arg1)
createOrReuseData(PalettedContainer$Data<T> arg0, int arg1)
method_38297(class_2841$class_6561<T> arg0, int arg1)
getCompatibleData(PalettedContainer$Data<T> previousData, int bits)
public int
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)
swap(int x, int y, int z, T value)
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)
swapUnsafe(int x, int y, int z, T value)
private T
a(int arg0, T arg1)
getAndSet(int arg0, T arg1)
method_12336(int arg0, T arg1)
swap(int index, T value)
public void
c(int arg0, int arg1, int arg2, T arg3)
set(int arg0, int arg1, int arg2, T arg3)
method_35321(int arg0, int arg1, int arg2, T arg3)
set(int x, int y, int z, T value)
private void
b(int arg0, T arg1)
set(int arg0, T arg1)
method_12322(int arg0, T arg1)
set(int index, T value)
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 arg0, int arg1, int arg2)
protected T
a(int arg0)
get(int arg0)
method_12331(int arg0)
get(int index)
public void
a(Consumer<T> arg0)
getAll(Consumer<T> arg0)
method_39793(Consumer<T> arg0)
forEachValue(Consumer<T> arg0)
public void
a(ws arg0)
read(FriendlyByteBuf arg0)
method_12326(class_2540 arg0)
readPacket(PacketByteBuf buf)
public void
b(ws arg0)
write(FriendlyByteBuf arg0)
method_12325(class_2540 arg0)
writePacket(PacketByteBuf arg0)
private static <T> com.mojang.serialization.DataResult<PalettedContainer<T>>
a(jv<T> arg0, eai$d arg1, eaj$a<T> arg2)
unpack(IdMap<T> arg0, PalettedContainer$Strategy arg1, PalettedContainerRO$PackedData<T> arg2)
method_44346(class_2359<T> arg0, class_2841$class_6563 arg1, class_7522$class_6562<T> arg2)
read(IndexedIterable<T> idList, PalettedContainer$PaletteProvider paletteProvider, ReadableContainer$Serialized<T> serialized)
public PalettedContainerRO$PackedData<T>
a(jv<T> arg0, eai$d arg1)
pack(IdMap<T> arg0, PalettedContainer$Strategy arg1)
method_44345(class_2359<T> arg0, class_2841$class_6563 arg1)
serialize(IndexedIterable<T> arg0, PalettedContainer$PaletteProvider arg1)
private static <T> void
a(int[] arg0, IntUnaryOperator arg1)
swapPalette(int[] arg0, IntUnaryOperator arg1)
method_39894(int[] arg0, IntUnaryOperator arg1)
applyEach(int[] is, IntUnaryOperator applier)
public int
c()
getSerializedSize()
method_12327()
getPacketSize()
public boolean
a(Predicate<T> arg0)
maybeHas(Predicate<T> arg0)
method_19526(Predicate<T> arg0)
hasAny(Predicate<T> arg0)
public PalettedContainer<T>
d()
copy()
method_39957()
copy()
public PalettedContainer<T>
e()
recreate()
method_44350()
slice()
public void
a(eai$b<T> arg0)
count(PalettedContainer$CountConsumer<T> arg0)
method_21732(class_2841$class_4464<T> arg0)
count(PalettedContainer$Counter<T> arg0)