Package net.minecraft.world.chunk
Interface Palette.Factory
public static interface Palette.Factory
An interface for easy creation of palettes.
- Mappings:
Namespace Name named net/minecraft/world/chunk/Palette$Factory
intermediary net/minecraft/class_2837$class_6559
official duq$a
-
Method Summary
Modifier and TypeMethodDescription<A> Palette
<A> create
(int bits, IndexedIterable<A> idList, PaletteResizeListener<A> listener, List<A> list) Creates a palette.
-
Method Details
-
create
<A> Palette<A> create(int bits, IndexedIterable<A> idList, PaletteResizeListener<A> listener, List<A> list) Creates a palette.- Parameters:
bits
- the number of bits each entry uses in the storageidList
- the indices of possible palette entries and their full integer IDs; useful for palette serializationlistener
- the resize listener, called when this palette runs out of capacity when assigning index to new entries- Returns:
- the created new palette
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/world/chunk/Palette$Factory;create(ILnet/minecraft/util/collection/IndexedIterable;Lnet/minecraft/world/chunk/PaletteResizeListener;Ljava/util/List;)Lnet/minecraft/world/chunk/Palette;
intermediary create
Lnet/minecraft/class_2837$class_6559;create(ILnet/minecraft/class_2359;Lnet/minecraft/class_2835;Ljava/util/List;)Lnet/minecraft/class_2837;
official create
Lduq$a;create(ILjn;Ldur;Ljava/util/List;)Lduq;
-