Package net.minecraft.world.level.chunk
Class SingleValuePalette<T>
java.lang.Object
net.minecraft.world.level.chunk.SingleValuePalette<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
-
Constructor Summary
ConstructorDescriptionSingleValuePalette
(IdMap<T> p_188207_, PaletteResize<T> p_188208_, List<T> p_188209_) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
static <A> Palette<A>
create
(int p_188214_, IdMap<A> p_188215_, PaletteResize<A> p_188216_, List<A> p_188217_) int
int
getSize()
int
boolean
void
read
(FriendlyByteBuf p_188223_) valueFor
(int p_188212_) void
write
(FriendlyByteBuf p_188226_)
-
Field Details
-
registry
-
value
-
resizeHandler
-
-
Constructor Details
-
SingleValuePalette
-
-
Method Details
-
create
public static <A> Palette<A> create(int p_188214_, IdMap<A> p_188215_, PaletteResize<A> p_188216_, List<A> p_188217_) -
idFor
-
maybeHas
-
valueFor
-
read
-
write
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacePalette<T>
-
getSize
public int getSize() -
copy
-