Package net.minecraft.world.level.chunk
Class HashMapPalette<T>
java.lang.Object
net.minecraft.world.level.chunk.HashMapPalette<T>
- All Implemented Interfaces:
Palette<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private Function<CompoundTag,T>
private PaletteResize<T>
private CrudeIncrementalIntIdentityHashBiMap<T>
private Function<T,CompoundTag>
-
Constructor Summary
ConstructorDescriptionHashMapPalette(IdMapper<T> p_62664_, int p_62665_, PaletteResize<T> p_62666_, Function<CompoundTag,T> p_62667_, Function<T,CompoundTag> p_62668_)
-
Method Summary
-
Field Details
-
registry
-
values
-
resizeHandler
-
reader
-
writer
-
bits
private final int bits
-
-
Constructor Details
-
HashMapPalette
public HashMapPalette(IdMapper<T> p_62664_, int p_62665_, PaletteResize<T> p_62666_, Function<CompoundTag,T> p_62667_, Function<T,CompoundTag> p_62668_)
-
-
Method Details
-
idFor
-
maybeHas
-
valueFor
-
read
-
write
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacePalette<T>
-
getSize
public int getSize() -
read
-
write
-