Uses of Interface
net.minecraft.world.chunk.Palette
-
Uses of Palette in net.minecraft.world.chunk
Modifier and TypeClassDescriptionclass
ArrayPalette<T>
A palette that stores the possible entries in an array and maps them to their indices in the array.class
BiMapPalette<T>
A palette backed by a bidirectional hash table.class
A palette that directly stores the raw ID of entries to the palette container storage.class
A palette that only holds a unique entry.Modifier and TypeFieldDescriptionPalettedContainer.Data.palette
The field for thepalette
record component.Modifier and TypeMethodDescriptionArrayPalette.copy()
BiMapPalette.copy()
IdListPalette.copy()
Palette.copy()
SingularPalette.copy()
static <A> Palette<A>
ArrayPalette.create
(int bits, IndexedIterable<A> idList, PaletteResizeListener<A> listener, List<A> list) static <A> Palette<A>
BiMapPalette.create
(int bits, IndexedIterable<A> idList, PaletteResizeListener<A> listener, List<A> entries) static <A> Palette<A>
IdListPalette.create
(int bits, IndexedIterable<A> idList, PaletteResizeListener<A> listener, List<A> list) <A> Palette<A>
Palette.Factory.create
(int bits, IndexedIterable<A> idList, PaletteResizeListener<A> listener, List<A> list) Creates a palette.static <A> Palette<A>
SingularPalette.create
(int bitSize, IndexedIterable<A> idList, PaletteResizeListener<A> listener, List<A> entries) Creates a singular pallete.PalettedContainer.Data.palette()
Returns the value of thepalette
record component.Modifier and TypeMethodDescriptionvoid
PalettedContainer.Data.importFrom
(Palette<T> palette, PaletteStorage storage) Imports the data from the otherstorage
with the otherpalette
.ModifierConstructorDescription(package private)
Data
(PalettedContainer.DataProvider<T> configuration, PaletteStorage storage, Palette<T> palette) Creates an instance of aData
record class.