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
Modifier and TypeFieldDescriptionprivate final int
private final PaletteResize
<T> private final CrudeIncrementalIntIdentityHashBiMap
<T> -
Constructor Summary
ModifierConstructorDescriptionHashMapPalette
(IdMap<T> p_187904_, int p_187905_, PaletteResize<T> p_187906_) HashMapPalette
(IdMap<T> p_187908_, int p_187909_, PaletteResize<T> p_187910_, List<T> p_187911_) private
HashMapPalette
(IdMap<T> p_199915_, int p_199916_, PaletteResize<T> p_199917_, CrudeIncrementalIntIdentityHashBiMap<T> p_199918_) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
static <A> Palette
<A> create
(int p_187913_, IdMap<A> p_187914_, PaletteResize<A> p_187915_, List<A> p_187916_) int
int
getSize()
int
boolean
void
read
(FriendlyByteBuf p_62679_) valueFor
(int p_62671_) void
write
(FriendlyByteBuf p_62684_)
-
Field Details
-
registry
-
values
-
resizeHandler
-
bits
private final int bits
-
-
Constructor Details
-
HashMapPalette
-
HashMapPalette
-
HashMapPalette
private HashMapPalette(IdMap<T> p_199915_, int p_199916_, PaletteResize<T> p_199917_, CrudeIncrementalIntIdentityHashBiMap<T> p_199918_)
-
-
Method Details
-
create
public static <A> Palette<A> create(int p_187913_, IdMap<A> p_187914_, PaletteResize<A> p_187915_, List<A> p_187916_) -
idFor
-
maybeHas
-
valueFor
-
read
-
write
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacePalette<T>
-
getEntries
-
getSize
public int getSize() -
copy
-