Package net.minecraft.world.chunk
Interface Palette.Factory
public static interface Palette.Factory
An interface for easy creation of palettes.
- Mappings:
Namespace Name official dhw$a
intermediary net/minecraft/class_2837$class_6559
named net/minecraft/world/chunk/Palette$Factory
-
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 official create
Ldhw$a;create(ILhj;Ldhx;Ljava/util/List;)Ldhw;
intermediary create
Lnet/minecraft/class_2837$class_6559;create(ILnet/minecraft/class_2359;Lnet/minecraft/class_2835;Ljava/util/List;)Lnet/minecraft/class_2837;
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;
-