net.minecraft.world.level.chunk

public class PalettedContainer<T>

implements PaletteResize<T>, PalettedContainerRO<T>

dvq
net.minecraft.world.level.chunk.PalettedContainer
net.minecraft.class_2841
net.minecraft.world.chunk.PalettedContainer
net.minecraft.src.C_2145_
net.minecraft.world.level.chunk.DataPaletteBlock

Field summary

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

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)
public (IdMap<T> idList, T object, PalettedContainer$Strategy paletteProvider)

Method summary

Modifier and TypeMethod
public void
a()
acquire()
method_12334()
lock()
m_63084_()
public void
b()
release()
method_12335()
unlock()
m_63120_()
public static <T> com.mojang.serialization.Codec<PalettedContainer<T>>
a(jr<T> arg0, com.mojang.serialization.Codec<T> arg1, dvq$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)
m_238371_(C_4698_<T> p_238372_, com.mojang.serialization.Codec<T> p_238373_, C_2145_$C_182882_ p_238374_, T p_238375_)
public static <T> com.mojang.serialization.Codec<PalettedContainerRO<T>>
b(jr<T> arg0, com.mojang.serialization.Codec<T> arg1, dvq$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)
m_238418_(C_4698_<T> p_238419_, com.mojang.serialization.Codec<T> p_238420_, C_2145_$C_182882_ p_238421_, T p_238422_)
private static <T, C extends PalettedContainerRO<T>> com.mojang.serialization.Codec<C>
a(jr<T> arg0, com.mojang.serialization.Codec<T> arg1, dvq$d arg2, T arg3, dvr$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)
m_238427_(C_4698_<T> p_238428_, com.mojang.serialization.Codec<T> p_238429_, C_2145_$C_182882_ p_238430_, T p_238431_, C_238161_$C_238164_<T, C> p_238432_)
private PalettedContainer$Data<T>
a(dvq$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)
m_188051_(C_2145_$C_182880_<T> p_188053_, int arg1)
public int
onResize(int arg0, T arg1)
onResize(int arg0, T arg1)
onResize(int arg0, T arg1)
onResize(int arg0, T arg1)
m_7248_(int p_63143_, 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)
m_63091_(int p_63093_, int p_63094_, int p_63095_, 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)
swapUnsafe(int x, int y, int z, T value)
m_63127_(int p_63129_, int p_63130_, int p_63131_, T arg3)
private T
a(int arg0, T arg1)
getAndSet(int arg0, T arg1)
method_12336(int arg0, T arg1)
swap(int index, T value)
m_63096_(int p_63098_, T arg1)
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)
m_156470_(int p_156472_, int p_156473_, int p_156474_, T arg3)
private void
b(int arg0, T arg1)
set(int arg0, T arg1)
method_12322(int arg0, T arg1)
set(int index, T value)
m_63132_(int p_63134_, 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 arg0, int arg1, int arg2)
m_63087_(int p_63089_, int p_63090_, int arg2)
protected T
a(int arg0)
get(int arg0)
method_12331(int arg0)
get(int index)
m_63085_(int arg0)
public void
a(Consumer<T> arg0)
getAll(Consumer<T> arg0)
method_39793(Consumer<T> arg0)
forEachValue(Consumer<T> arg0)
m_196879_(Consumer<T> arg0)
public void
a(vw arg0)
read(FriendlyByteBuf arg0)
method_12326(class_2540 arg0)
readPacket(PacketByteBuf buf)
m_63118_(C_4983_ arg0)
public void
b(vw arg0)
write(FriendlyByteBuf arg0)
method_12325(class_2540 arg0)
writePacket(PacketByteBuf arg0)
m_63135_(C_4983_ arg0)
private static <T> com.mojang.serialization.DataResult<PalettedContainer<T>>
a(jr<T> arg0, dvq$d arg1, dvr$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)
m_188067_(C_4698_<T> p_188068_, C_2145_$C_182882_ p_188069_, C_238161_$C_238162_<T> p_238258_)
public PalettedContainerRO$PackedData<T>
a(jr<T> arg0, dvq$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)
m_188064_(C_4698_<T> p_188066_, C_2145_$C_182882_ 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)
m_198189_(int[] p_198190_, IntUnaryOperator p_198191_)
public int
c()
getSerializedSize()
method_12327()
getPacketSize()
m_63137_()
public boolean
a(Predicate<T> arg0)
maybeHas(Predicate<T> arg0)
method_19526(Predicate<T> arg0)
hasAny(Predicate<T> arg0)
m_63109_(Predicate<T> arg0)
public PalettedContainer<T>
d()
copy()
method_39957()
copy()
m_199931_()
public PalettedContainer<T>
e()
recreate()
method_44350()
slice()
m_238334_()
public void
a(dvq$b<T> arg0)
count(PalettedContainer$CountConsumer<T> arg0)
method_21732(class_2841$class_4464<T> arg0)
count(PalettedContainer$Counter<T> arg0)
m_63099_(C_2145_$C_2146_<T> arg0)