Interface Palette.Factory

Enclosing interface:
Palette<T>

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 dvm$a
  • 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
      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 Ldvm$a;create(ILjr;Ldvn;Ljava/util/List;)Ldvm;