net.minecraft.world.level.chunk

public class HashMapPalette<T>

implements Palette<T>

cgf
net.minecraft.world.level.chunk.HashMapPalette
net.minecraft.class_2814
net.minecraft.world.chunk.BiMapPalette
net.minecraft.util.palette.HashMapPalette
net.minecraft.server.v1_16_R3.DataPaletteHash

Field summary

Modifier and TypeField
private final IdMapper<T>
a
registry
field_12821
idList
field_205509_a
private final CrudeIncrementalIntIdentityHashBiMap<T>
b
values
field_12824
map
field_186046_a
private final PaletteResize<T>
c
resizeHandler
field_12825
resizeHandler
field_186047_b
private final Function<CompoundTag, T>
d
reader
field_12823
elementDeserializer
field_205510_d
private final Function<T, CompoundTag>
e
writer
field_12826
elementSerializer
field_205511_e
private final int
f
bits
field_12822
indexBits
field_186048_c

Constructor summary

ModifierConstructor
public (IdMapper<T> idList, int indexBits, PaletteResize<T> resizeHandler, Function<CompoundTag, T> elementDeserializer, Function<T, CompoundTag> elementSerializer)

Method summary

Modifier and TypeMethod
public int
a(T arg0)
idFor(T arg0)
method_12291(T arg0)
getIndex(T arg0)
func_186041_a(T arg0)
public boolean
a(Predicate<T> arg0)
maybeHas(Predicate<T> arg0)
method_19525(Predicate<T> arg0)
accepts(Predicate<T> arg0)
func_230341_a_(Predicate<T> arg0)
public T
a(int arg0)
valueFor(int arg0)
method_12288(int arg0)
getByIndex(int arg0)
func_186039_a(int arg0)
public void
b(nf arg0)
write(FriendlyByteBuf arg0)
method_12287(class_2540 arg0)
toPacket(PacketByteBuf arg0)
func_186037_b(PacketBuffer arg0)
public int
a()
getSerializedSize()
method_12290()
getPacketSize()
func_186040_a()
public int
b()
getSize()
method_12197()
getIndexBits()
func_202136_b()
public void
a(mj arg0)
read(ListTag arg0)
method_12286(class_2499 arg0)
readNbt(NbtList arg0)
func_196968_a(ListNBT arg0)
public void
b(mj arg0)
write(ListTag arg0)
method_12196(class_2499 arg0)
writeNbt(NbtList nbt)
func_196969_b(ListNBT arg0)
public void
a(nf arg0)
read(FriendlyByteBuf arg0)
method_12289(class_2540 arg0)
fromPacket(PacketByteBuf arg0)
func_186038_a(PacketBuffer arg0)