net.minecraft.world.level.chunk

public class PalettedContainer<T>

implements PaletteResize<T>

cqp
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(gq<T> arg0, com.mojang.serialization.Codec<T> arg1, cqp$e arg2, T arg3)
codec(IdMap<T> arg0, com.mojang.serialization.Codec<T> arg1, PalettedContainer$Strategy arg2, T arg3)
method_38298(class_2359<T> arg0, com.mojang.serialization.Codec<T> arg1, class_2841$class_6563 arg2, T arg3)
createCodec(IndexedIterable<T> idList, com.mojang.serialization.Codec<T> entryCodec, PalettedContainer$PaletteProvider provider, T arg3)
m_188054_(C_4698_<T> p_188055_, com.mojang.serialization.Codec<T> p_188056_, C_2145_$C_182882_ p_188057_, T p_188058_)
private PalettedContainer$Data<T>
a(cqp$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 x, int y, int z)
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)
method_39793(Consumer<T> arg0)
m_196879_(Consumer<T> arg0)
public void
a(pn arg0)
read(FriendlyByteBuf arg0)
method_12326(class_2540 arg0)
readPacket(PacketByteBuf buf)
m_63118_(C_4983_ arg0)
public void
b(pn arg0)
write(FriendlyByteBuf arg0)
method_12325(class_2540 arg0)
writePacket(PacketByteBuf buf)
m_63135_(C_4983_ arg0)
private static <T> com.mojang.serialization.DataResult<PalettedContainer<T>>
a(gq<T> arg0, cqp$e arg1, cqp$d<T> arg2)
read(IdMap<T> arg0, PalettedContainer$Strategy arg1, PalettedContainer$DiscData<T> arg2)
method_38301(class_2359<T> arg0, class_2841$class_6563 arg1, class_2841$class_6562<T> arg2)
read(IndexedIterable<T> idList, PalettedContainer$PaletteProvider provider, PalettedContainer$Serialized<T> serialized)
m_188067_(C_4698_<T> p_188068_, C_2145_$C_182882_ p_188069_, C_2145_$C_182881_<T> p_188070_)
private PalettedContainer$DiscData<T>
a(gq<T> arg0, cqp$e arg1)
write(IdMap<T> arg0, PalettedContainer$Strategy arg1)
method_38300(class_2359<T> arg0, class_2841$class_6563 arg1)
write(IndexedIterable<T> idList, PalettedContainer$PaletteProvider provider)
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)
method_39894(int[] arg0, IntUnaryOperator arg1)
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> predicate)
m_63109_(Predicate<T> arg0)
public PalettedContainer<T>
d()
copy()
method_39957()
copy()
m_199931_()
public void
a(cqp$b<T> arg0)
count(PalettedContainer$CountConsumer<T> arg0)
method_21732(class_2841$class_4464<T> arg0)
count(PalettedContainer$Counter<T> counter)
m_63099_(C_2145_$C_2146_<T> arg0)