Package net.minecraft.world.level.chunk
Class LinearPalette<T>
java.lang.Object
net.minecraft.world.level.chunk.LinearPalette<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 int
private final T[]
-
Constructor Summary
ModifierConstructorDescriptionprivate
LinearPalette
(IdMap<T> p_188015_, int p_188016_, PaletteResize<T> p_188017_, List<T> p_188018_) private
LinearPalette
(IdMap<T> p_199921_, T[] p_199922_, PaletteResize<T> p_199923_, int p_199924_, int p_199925_) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
static <A> Palette<A>
create
(int p_188020_, IdMap<A> p_188021_, PaletteResize<A> p_188022_, List<A> p_188023_) int
int
getSize()
int
boolean
void
read
(FriendlyByteBuf p_63046_) valueFor
(int p_63038_) void
write
(FriendlyByteBuf p_63049_)
-
Field Details
-
registry
-
values
-
resizeHandler
-
bits
private final int bits -
size
private int size
-
-
Constructor Details
-
LinearPalette
-
LinearPalette
private LinearPalette(IdMap<T> p_199921_, T[] p_199922_, PaletteResize<T> p_199923_, int p_199924_, int p_199925_)
-
-
Method Details
-
create
public static <A> Palette<A> create(int p_188020_, IdMap<A> p_188021_, PaletteResize<A> p_188022_, List<A> p_188023_) -
idFor
-
maybeHas
-
valueFor
-
read
-
write
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacePalette<T>
-
getSize
public int getSize() -
copy
-