net.minecraft.world.level.chunk

public class PalettedContainer<T>

implements PaletteResize<T>

cnd
net.minecraft.world.level.chunk.PalettedContainer
net.minecraft.class_2841
net.minecraft.unmapped.C_aehiirzw
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
d
SIZE
field_31411
f_eftlszpv
field_31411
f_156462_
public static final int
a
GLOBAL_PALETTE_BITS
field_31409
f_ihgwrdou
field_31409
f_156460_
public static final int
b
MIN_PALETTE_SIZE
field_31410
f_opehfdlg
field_31410
f_156461_
private final Palette<T>
e
globalPalette
field_12940
f_izvmkvhf
fallbackPalette
f_63069_
private final PaletteResize<T>
f
dummyPaletteResize
field_12942
f_llvpfuzb
noOpPaletteResizeHandler
f_63070_
private final IdMapper<T>
g
registry
field_12938
f_jnqmbtbo
idList
f_63071_
private final Function<CompoundTag, T>
h
reader
field_12943
f_ctdynwau
elementDeserializer
f_63072_
private final Function<T, CompoundTag>
i
writer
field_12939
f_mkuqqeyp
elementSerializer
f_63073_
private final T
j
defaultValue
field_12935
f_hliqtpbg
defaultValue
f_63074_
protected BitStorage
c
storage
field_12941
f_rcttnwhk
data
f_63068_
private Palette<T>
k
palette
field_12936
f_zfdsnstj
palette
f_63075_
private int
l
bits
field_12934
f_tnuwpbul
paletteSize
f_63076_
private final Semaphore
m
lock
field_12937
f_oyithvfy
writeLock
f_63077_
private final DebugBuffer<com.mojang.datafixers.util.Pair<Thread, StackTraceElement[]>>
n
traces
field_28812
f_cwevidkh
lockStack
f_156463_

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()
m_xsfxrokt()
lock()
m_63084_()
public void
b()
release()
method_12335()
m_udggqttg()
unlock()
m_63120_()
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)
m_zevoouoh(int arg0, int arg1, int arg2)
toIndex(int x, int y, int z)
m_63123_(int p_63124_, int p_63125_, int p_63126_)
private void
b(int arg0)
setBits(int arg0)
method_12324(int arg0)
m_sfdkbflj(int arg0)
setPaletteSize(int size)
m_63121_(int arg0)
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)
setSync(int x, int y, int z, T value)
m_63091_(int p_63093_, int p_63094_, int p_63095_, 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)
m_iyxhoppi(int arg0, int arg1, int arg2, T arg3)
set(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)
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)
method_35321(int arg0, int arg1, int arg2, T arg3)
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 arg1)
m_63132_(int p_63134_, 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)
m_qfrxebnu(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)
m_zcurgtmk(int arg0)
get(int index)
m_63085_(int arg0)
public void
a(og arg0)
read(FriendlyByteBuf arg0)
method_12326(class_2540 arg0)
m_meswfhll(C_idfydwco arg0)
fromPacket(PacketByteBuf buf)
m_63118_(C_4983_ arg0)
public void
b(og arg0)
write(FriendlyByteBuf arg0)
method_12325(class_2540 arg0)
m_pwyzkihx(C_idfydwco arg0)
toPacket(PacketByteBuf buf)
m_63135_(C_4983_ arg0)
public void
a(ng arg0, long[] arg1)
read(ListTag arg0, long[] arg1)
method_12329(class_2499 arg0, long[] arg1)
m_gjeowldg(C_hqhtfwlr arg0, long[] arg1)
read(NbtList paletteNbt, long[] data)
m_63115_(C_4930_ p_63117_, long[] arg1)
public void
a(na arg0, String arg1, String arg2)
write(CompoundTag arg0, String arg1, String arg2)
method_12330(class_2487 arg0, String arg1, String arg2)
m_farggxnl(C_hhlwcnih arg0, String arg1, String arg2)
write(NbtCompound nbt, String paletteKey, String dataKey)
m_63111_(C_4917_ p_63113_, String p_63114_, String arg2)
public int
c()
getSerializedSize()
method_12327()
m_xqmkqlns()
getPacketSize()
m_63137_()
public boolean
a(Predicate<T> arg0)
maybeHas(Predicate<T> arg0)
method_19526(Predicate<T> arg0)
m_huyuznrj(Predicate<T> arg0)
hasAny(Predicate<T> arg0)
m_63109_(Predicate<T> arg0)
contains(Predicate<T> arg0)
public void
a(cnd$a<T> arg0)
count(PalettedContainer$CountConsumer<T> arg0)
method_21732(class_2841$class_4464<T> arg0)
m_ddhygbfe(C_aehiirzw$C_hfkxccvh<T> arg0)
count(PalettedContainer$CountConsumer<T> consumer)
m_63099_(C_2145_$C_2146_<T> arg0)