net.minecraft.world.level.chunk

public class HashMapPalette<T>

implements Palette<T>

cqg
net.minecraft.world.level.chunk.HashMapPalette
net.minecraft.class_2814
net.minecraft.world.chunk.BiMapPalette
net.minecraft.src.C_2135_
net.minecraft.world.level.chunk.DataPaletteHash

Field summary

Modifier and TypeField
private final IdMap<T>
a
registry
field_12821
idList
f_62657_
private final CrudeIncrementalIntIdentityHashBiMap<T>
b
values
field_12824
map
f_62658_
private final PaletteResize<T>
c
resizeHandler
field_12825
listener
f_62659_
private final int
d
bits
field_12822
indexBits
f_62662_

Constructor summary

ModifierConstructor
public (IdMap<T> idList, int bits, PaletteResize<T> listener, List<T> entries)
public (IdMap<T> idList, int indexBits, PaletteResize<T> listener)
private (IdMap<T> p_199916_, int p_199917_, PaletteResize<T> p_199918_, CrudeIncrementalIntIdentityHashBiMap<T> arg3)

Method summary

Modifier and TypeMethod
public static <A> Palette<A>
a(int arg0, gq<A> arg1, cqo<A> arg2, List<A> arg3)
create(int arg0, IdMap<A> arg1, PaletteResize<A> arg2, List<A> arg3)
method_38287(int arg0, class_2359<A> arg1, class_2835<A> arg2, List<A> arg3)
create(int bits, IndexedIterable<A> idList, PaletteResizeListener<A> listener, List<A> entries)
m_187912_(int p_187913_, C_4698_<A> p_187914_, C_2144_<A> p_187915_, List<A> p_187916_)
public int
a(T arg0)
idFor(T arg0)
method_12291(T arg0)
index(T arg0)
m_6796_(T arg0)
public boolean
a(Predicate<T> arg0)
maybeHas(Predicate<T> arg0)
method_19525(Predicate<T> arg0)
hasAny(Predicate<T> arg0)
m_6419_(Predicate<T> arg0)
public T
a(int arg0)
valueFor(int arg0)
method_12288(int arg0)
get(int arg0)
m_5795_(int arg0)
public void
a(pn arg0)
read(FriendlyByteBuf arg0)
method_12289(class_2540 arg0)
readPacket(PacketByteBuf arg0)
m_5680_(C_4983_ arg0)
public void
b(pn arg0)
write(FriendlyByteBuf arg0)
method_12287(class_2540 arg0)
writePacket(PacketByteBuf arg0)
m_5678_(C_4983_ arg0)
public int
a()
getSerializedSize()
method_12290()
getPacketSize()
m_6429_()
public List<T>
d()
getEntries()
method_38288()
getElements()
m_187917_()
public int
b()
getSize()
method_12197()
getSize()
m_142067_()
public Palette<T>
c()
copy()
method_39956()
copy()
m_199814_()