net.minecraft.world.level.chunk

public class LinearPalette<T>

implements Palette<T>

eae
net.minecraft.world.level.chunk.LinearPalette
net.minecraft.class_2834
net.minecraft.world.chunk.ArrayPalette
net.minecraft.world.level.chunk.DataPaletteLinear

Field summary

Modifier and TypeField
private final IdMap<T>
a
registry
field_12900
idList
private final T[]
b
values
field_12904
array
private final PaletteResize<T>
c
resizeHandler
field_12905
listener
private final int
d
bits
field_12903
indexBits
private int
e
size
field_12901
size

Constructor summary

ModifierConstructor
private (IdMap<T> idList, int bits, PaletteResize<T> listener, List<T> list)
private (IdMap<T> idList, T[] array, PaletteResize<T> listener, int indexBits, int size)

Method summary

Modifier and TypeMethod
public static <A> Palette<A>
a(int arg0, jv<A> arg1, eah<A> arg2, List<A> arg3)
create(int arg0, IdMap<A> arg1, PaletteResize<A> arg2, List<A> arg3)
method_38295(int arg0, class_2359<A> arg1, class_2835<A> arg2, List<A> arg3)
create(int bits, IndexedIterable<A> idList, PaletteResizeListener<A> listener, List<A> list)
public int
a(T arg0)
idFor(T arg0)
method_12291(T arg0)
index(T arg0)
public boolean
a(Predicate<T> arg0)
maybeHas(Predicate<T> arg0)
method_19525(Predicate<T> arg0)
hasAny(Predicate<T> arg0)
public T
a(int arg0)
valueFor(int arg0)
method_12288(int arg0)
get(int arg0)
public void
a(ws arg0)
read(FriendlyByteBuf arg0)
method_12289(class_2540 arg0)
readPacket(PacketByteBuf arg0)
public void
b(ws arg0)
write(FriendlyByteBuf arg0)
method_12287(class_2540 arg0)
writePacket(PacketByteBuf arg0)
public int
a()
getSerializedSize()
method_12290()
getPacketSize()
public int
b()
getSize()
method_12197()
getSize()
public Palette<T>
a(eah<T> arg0)
copy(PaletteResize<T> arg0)
method_39956(class_2835<T> arg0)
copy(PaletteResizeListener<T> arg0)