net.minecraft.world.chunk

public class BiMapPalette<T>

implements Palette<T>

net.minecraft.world.level.chunk.HashMapPalette
net.minecraft.class_2814
net.minecraft.world.chunk.BiMapPalette

Field summary

Modifier and TypeField
private final Int2ObjectBiMap<T>
values
field_12824
map
private final int
bits
field_12822
indexBits

Constructor summary

ModifierConstructor
public (int indexBits, List<T> values)
public (int indexBits)
private (int indexBits, Int2ObjectBiMap<T> map)

Method summary

Modifier and TypeMethod
public static <A> Palette<A>
create(int bits, List<A> paletteEntries)
method_38287(int arg0, List<A> arg1)
create(int bits, List<A> values)
public int
idFor(T value, PaletteResize<T> resizeHandler)
method_12291(T arg0, class_2835<T> arg1)
index(T arg0, PaletteResizeListener<T> arg1)
public boolean
maybeHas(Predicate<T> predicate)
method_19525(Predicate<T> arg0)
hasAny(Predicate<T> arg0)
public T
valueFor(int index)
method_12288(int arg0)
get(int arg0)
public void
read(FriendlyByteBuf buffer, IdMap<T> globalMap)
method_12289(class_2540 arg0, class_2359<T> arg1)
readPacket(PacketByteBuf arg0, IndexedIterable<T> arg1)
public void
write(FriendlyByteBuf buffer, IdMap<T> globalMap)
method_12287(class_2540 arg0, class_2359<T> arg1)
writePacket(PacketByteBuf arg0, IndexedIterable<T> arg1)
public int
getSerializedSize(IdMap<T> globalMap)
method_12290(class_2359<T> arg0)
getPacketSize(IndexedIterable<T> arg0)
public List<T>
getEntries()
method_38288()
getElements()
public int
getSize()
method_12197()
getSize()
public Palette<T>
copy()
method_39956()
copy()