Package net.minecraft.world.level.chunk
Class LinearPalette<T>
java.lang.Object
net.minecraft.world.level.chunk.LinearPalette<T>
- All Implemented Interfaces:
Palette<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private Function<CompoundTag,T>
private PaletteResize<T>
private int
private T[]
-
Constructor Summary
ConstructorDescriptionLinearPalette(IdMapper<T> p_63032_, int p_63033_, PaletteResize<T> p_63034_, Function<CompoundTag,T> p_63035_)
-
Method Summary
Modifier and TypeMethodDescriptionint
int
getSize()
int
boolean
void
void
read(FriendlyByteBuf p_63046_)
valueFor(int p_63038_)
void
write(FriendlyByteBuf p_63049_)
-
Field Details
-
registry
-
values
-
resizeHandler
-
reader
-
bits
private final int bits -
size
private int size
-
-
Constructor Details
-
LinearPalette
public LinearPalette(IdMapper<T> p_63032_, int p_63033_, PaletteResize<T> p_63034_, Function<CompoundTag,T> p_63035_)
-
-
Method Details
-
idFor
-
maybeHas
-
valueFor
-
read
-
write
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacePalette<T>
-
getSize
public int getSize() -
read
-