net.minecraft.world.level.chunk

public class PalettedContainer<T>

implements PaletteResize<T>, PalettedContainerRO<T>

dlw
net.minecraft.world.level.chunk.PalettedContainer
net.minecraft.class_2841
net.minecraft.unmapped.C_aehiirzw
net.minecraft.world.chunk.PalettedContainer
net.minecraft.world.chunk.palette.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
f_stnxqmvw
field_34557
MIN_PALETTE_BITS
f_188031_
private final PaletteResize<T>
b
dummyPaletteResize
field_34558
f_llvpfuzb
dummyListener
noOpPaletteResizeHandler
f_63070_
private final IdMap<T>
c
registry
field_34559
f_jnqmbtbo
idList
idList
f_63071_
private volatile PalettedContainer$Data<T>
d
data
field_34560
f_edgidzdn
data
data
f_188032_
private final PalettedContainer$Strategy
e
strategy
field_34561
f_bfbmxeef
paletteProvider
paletteProvider
f_188033_
private final ThreadingDetector
f
threadingDetector
field_36300
f_wylupdgt
lockHelper
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()
m_xsfxrokt()
lock()
lock()
m_63084_()
public void
b()
release()
method_12335()
m_udggqttg()
unlock()
unlock()
m_63120_()
public static <T> com.mojang.serialization.Codec<PalettedContainer<T>>
a(im<T> arg0, com.mojang.serialization.Codec<T> arg1, dlw$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)
m_jmdckqbg(C_feaetnaz<T> arg0, com.mojang.serialization.Codec<T> arg1, C_aehiirzw$C_sxtmudnl arg2, T arg3)
createPalettedContainerCodec(IndexedIterable<T> idList, com.mojang.serialization.Codec<T> entryCodec, PalettedContainer$PaletteProvider paletteProvider, T defaultValue)
createPalettedCodec(IndexedIterable<T> iterable, com.mojang.serialization.Codec<T> codec, PalettedContainer$PaletteProvider paletteProvider, T arg3)
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(im<T> arg0, com.mojang.serialization.Codec<T> arg1, dlw$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)
m_xbfuvkjx(C_feaetnaz<T> arg0, com.mojang.serialization.Codec<T> arg1, C_aehiirzw$C_sxtmudnl arg2, T arg3)
createReadableContainerCodec(IndexedIterable<T> idList, com.mojang.serialization.Codec<T> entryCodec, PalettedContainer$PaletteProvider paletteProvider, T defaultValue)
createReadableCodec(IndexedIterable<T> iterable, com.mojang.serialization.Codec<T> codec, PalettedContainer$PaletteProvider paletteProvider, T arg3)
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(im<T> arg0, com.mojang.serialization.Codec<T> arg1, dlw$d arg2, T arg3, dlx$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)
m_szxyhmkq(C_feaetnaz<T> arg0, com.mojang.serialization.Codec<T> arg1, C_aehiirzw$C_sxtmudnl arg2, T arg3, C_kedlqxpi$C_znpcjlst<T, C> arg4)
createCodec(IndexedIterable<T> idList, com.mojang.serialization.Codec<T> entryCodec, PalettedContainer$PaletteProvider provider, T defaultValue, ReadableContainer$Reader<T, C> reader)
createCodec(IndexedIterable<T> idList, com.mojang.serialization.Codec<T> entryCodec, PalettedContainer$PaletteProvider paletteProvider, T partialId, ReadableContainer$Reader<T, C> arg4)
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(dlw$c<T> arg0, int arg1)
createOrReuseData(PalettedContainer$Data<T> arg0, int arg1)
method_38297(class_2841$class_6561<T> arg0, int arg1)
m_faqwumtl(C_aehiirzw$C_zdxjpjcl<T> arg0, int arg1)
getCompatibleData(PalettedContainer$Data<T> previousData, int bits)
getCompatibleData(PalettedContainer$Data<T> data, 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)
m_vtsjlcza(int arg0, int arg1, int arg2, T arg3)
swap(int x, int y, int z, T value)
setSync(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)
m_iyxhoppi(int arg0, int arg1, int arg2, T arg3)
swapUnsafe(int x, int y, int z, T value)
setUnsafe(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)
m_olzskczg(int arg0, T arg1)
swap(int index, T value)
setAndGetOldValue(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)
m_yguodurj(int arg0, int arg1, int arg2, T arg3)
set(int x, int y, int z, T value)
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)
m_mrxrbahp(int arg0, T arg1)
set(int index, T value)
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)
m_hnfmqovh(int arg0, int arg1, int arg2)
get(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)
m_zcurgtmk(int arg0)
get(int index)
get(int index)
m_63085_(int arg0)
public void
a(Consumer<T> arg0)
getAll(Consumer<T> arg0)
method_39793(Consumer<T> arg0)
m_ornvbutm(Consumer<T> arg0)
forEachValue(Consumer<T> arg0)
forEachValue(Consumer<T> arg0)
m_196879_(Consumer<T> arg0)
public void
a(ui arg0)
read(FriendlyByteBuf arg0)
method_12326(class_2540 arg0)
m_lmrbywvo(C_idfydwco arg0)
readPacket(PacketByteBuf buf)
readPacket(PacketByteBuf buf)
m_63118_(C_4983_ arg0)
public void
b(ui arg0)
write(FriendlyByteBuf arg0)
method_12325(class_2540 arg0)
m_jhlwxiih(C_idfydwco arg0)
writePacket(PacketByteBuf arg0)
writePacket(PacketByteBuf arg0)
m_63135_(C_4983_ arg0)
private static <T> com.mojang.serialization.DataResult<PalettedContainer<T>>
a(im<T> arg0, dlw$d arg1, dlx$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)
m_adiygqxy(C_feaetnaz<T> arg0, C_aehiirzw$C_sxtmudnl arg1, C_kedlqxpi$C_pmiurczo<T> arg2)
read(IndexedIterable<T> idList, PalettedContainer$PaletteProvider paletteProvider, ReadableContainer$Serialized<T> serialized)
read(IndexedIterable<T> iterable, PalettedContainer$PaletteProvider paletteProvider, ReadableContainer$Serialized<T> serializedContainer)
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(im<T> arg0, dlw$d arg1)
pack(IdMap<T> arg0, PalettedContainer$Strategy arg1)
method_44345(class_2359<T> arg0, class_2841$class_6563 arg1)
m_vgbxjbyd(C_feaetnaz<T> arg0, C_aehiirzw$C_sxtmudnl arg1)
serialize(IndexedIterable<T> arg0, PalettedContainer$PaletteProvider 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)
m_tldeonzq(int[] arg0, IntUnaryOperator arg1)
applyEach(int[] is, IntUnaryOperator applier)
applyEach(int[] appliedTo, IntUnaryOperator operator)
m_198189_(int[] p_198190_, IntUnaryOperator p_198191_)
public int
c()
getSerializedSize()
method_12327()
m_gcvbosal()
getPacketSize()
getPacketSize()
m_63137_()
public boolean
a(Predicate<T> arg0)
maybeHas(Predicate<T> arg0)
method_19526(Predicate<T> arg0)
m_vxraishv(Predicate<T> arg0)
hasAny(Predicate<T> arg0)
hasAny(Predicate<T> arg0)
m_63109_(Predicate<T> arg0)
public PalettedContainer<T>
d()
copy()
method_39957()
m_myeoazqc()
copy()
copy()
m_199931_()
public PalettedContainer<T>
e()
recreate()
method_44350()
m_enhkzepj()
slice()
slice()
m_238334_()
public void
a(dlw$b<T> arg0)
count(PalettedContainer$CountConsumer<T> arg0)
method_21732(class_2841$class_4464<T> arg0)
m_ocexzull(C_aehiirzw$C_hfkxccvh<T> arg0)
count(PalettedContainer$Counter<T> arg0)
count(PalettedContainer$CountConsumer<T> arg0)
m_63099_(C_2145_$C_2146_<T> arg0)