net.minecraft.world.level.chunk

public class LinearPalette<T>

implements Palette<T>

cna
net.minecraft.world.level.chunk.LinearPalette
net.minecraft.class_2834
net.minecraft.world.chunk.ArrayPalette
net.minecraft.src.C_2141_
net.minecraft.world.level.chunk.DataPaletteLinear

Field summary

Modifier and TypeField
private final IdMapper<T>
a
registry
field_12900
idList
f_63025_
private final T[]
b
values
field_12904
array
f_63026_
private final PaletteResize<T>
c
resizeHandler
field_12905
resizeListener
f_63027_
private final Function<CompoundTag, T>
d
reader
field_12902
valueDeserializer
f_63028_
private final int
e
bits
field_12903
indexBits
f_63029_
private int
f
size
field_12901
size
f_63030_

Constructor summary

ModifierConstructor
public (IdMapper<T> idList, int integer, PaletteResize<T> resizeListener, Function<CompoundTag, T> valueDeserializer)

Method summary

Modifier and TypeMethod
public int
a(T arg0)
idFor(T arg0)
method_12291(T arg0)
getIndex(T arg0)
m_6796_(T arg0)
public boolean
a(Predicate<T> arg0)
maybeHas(Predicate<T> arg0)
method_19525(Predicate<T> arg0)
accepts(Predicate<T> arg0)
m_6419_(Predicate<T> arg0)
public T
a(int arg0)
valueFor(int arg0)
method_12288(int arg0)
getByIndex(int arg0)
m_5795_(int arg0)
public void
a(og arg0)
read(FriendlyByteBuf arg0)
method_12289(class_2540 arg0)
fromPacket(PacketByteBuf arg0)
m_5680_(C_4983_ arg0)
public void
b(og arg0)
write(FriendlyByteBuf arg0)
method_12287(class_2540 arg0)
toPacket(PacketByteBuf arg0)
m_5678_(C_4983_ arg0)
public int
a()
getSerializedSize()
method_12290()
getPacketSize()
m_6429_()
public int
b()
getSize()
method_12197()
getIndexBits()
m_142067_()
public void
a(ng arg0)
read(ListTag arg0)
method_12286(class_2499 arg0)
readNbt(NbtList arg0)
m_7385_(C_4930_ arg0)