Interface Palette.Factory

Enclosing interface:
Palette<T>

public static interface Palette.Factory
An interface for easy creation of palettes.
Mappings:
Namespace Name
official ded$a
intermediary net/minecraft/class_2837$class_6559
named net/minecraft/world/chunk/Palette$Factory
  • 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 storage
      idList - the indices of possible palette entries and their full integer IDs; useful for palette serialization
      listener - 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 Lded$a;create(ILhi;Ldee;Ljava/util/List;)Lded;
      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;