Package net.minecraft.world.level.chunk
Class HashMapPalette<T>
java.lang.Object
net.minecraft.world.level.chunk.HashMapPalette<T>
- All Implemented Interfaces:
Palette<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.chunk.Palette
Palette.Factory -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final CrudeIncrementalIntIdentityHashBiMap<T> -
Constructor Summary
ConstructorsModifierConstructorDescriptionHashMapPalette(int pBits) HashMapPalette(int pBits, List<T> pValues) privateHashMapPalette(int pBits, CrudeIncrementalIntIdentityHashBiMap<T> pValues) -
Method Summary
Modifier and TypeMethodDescriptioncopy()static <A> Palette<A> intgetSerializedSize(IdMap<T> p_446087_) intgetSize()intidFor(T p_62673_, PaletteResize<T> p_445988_) booleanvoidread(FriendlyByteBuf p_62679_, IdMap<T> p_446983_) valueFor(int p_62671_) voidwrite(FriendlyByteBuf p_62684_, IdMap<T> p_446147_)
-
Field Details
-
values
-
bits
private final int bits
-
-
Constructor Details
-
HashMapPalette
-
HashMapPalette
public HashMapPalette(int pBits) -
HashMapPalette
-
-
Method Details
-
create
-
idFor
-
maybeHas
-
valueFor
-
read
-
write
-
getSerializedSize
- Specified by:
getSerializedSizein interfacePalette<T>
-
getEntries
-
getSize
public int getSize() -
copy
-