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$Factoryintermediary net/minecraft/class_2837$class_6559official eed$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 createLnet/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 createLnet/minecraft/class_2837$class_6559;create(ILnet/minecraft/class_2359;Lnet/minecraft/class_2835;Ljava/util/List;)Lnet/minecraft/class_2837;official createLeed$a;create(ILjl;Leee;Ljava/util/List;)Leed;
 
 -