net.minecraft.world.chunk

public class SingularPalette<T>

implements Palette<T>

net.minecraft.world.level.chunk.SingleValuePalette
net.minecraft.class_6564
net.minecraft.world.chunk.SingularPalette

Field summary

Modifier and TypeField
private T
value
field_34574
entry

Constructor summary

ModifierConstructor
public (List<T> idList)

Method summary

Modifier and TypeMethod
public static <A> Palette<A>
create(int bits, List<A> paletteEntries)
method_38316(int arg0, List<A> arg1)
create(int bitSize, List<A> idList)
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 int
getSize()
method_12197()
getSize()
public Palette<T>
copy()
method_39956()
copy()