Interface PaletteStorage

All Known Implementing Classes:
EmptyPaletteStorage, PackedIntegerArray

public interface PaletteStorage
A storage whose values are raw IDs held by palettes.
Mappings:
Namespace Name
official akn
intermediary net/minecraft/class_6490
named net/minecraft/util/collection/PaletteStorage
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    Executes an action on all values in this storage, sequentially.
    int
    get(int index)
    Returns the value at index in this storage.
    long[]
    Returns the backing data of this storage.
    int
    Returns the number of bits each element in this storage uses.
    int
    Returns the size of, or the number of elements in, this storage.
    void
    method_39892(int[] int2)
     
    void
    set(int index, int value)
    Sets value to index in this storage.
    int
    swap(int index, int value)
    Sets value to index and returns the previous value in this storage.
  • Method Details

    • swap

      int swap(int index, int value)
      Sets value to index and returns the previous value in this storage.
      Parameters:
      index - the index
      value - the value to set
      Returns:
      the previous value
      Mappings:
      Namespace Name Mixin selector
      official a Lakn;a(II)I
      intermediary method_15214 Lnet/minecraft/class_6490;method_15214(II)I
      named swap Lnet/minecraft/util/collection/PaletteStorage;swap(II)I
    • set

      void set(int index, int value)
      Sets value to index in this storage.
      Parameters:
      index - the index
      value - the value to set
      Mappings:
      Namespace Name Mixin selector
      official b Lakn;b(II)V
      intermediary method_15210 Lnet/minecraft/class_6490;method_15210(II)V
      named set Lnet/minecraft/util/collection/PaletteStorage;set(II)V
    • get

      int get(int index)
      Returns the value at index in this storage.
      Parameters:
      index - the index
      Returns:
      the value at index in this storage
      Mappings:
      Namespace Name Mixin selector
      official a Lakn;a(I)I
      intermediary method_15211 Lnet/minecraft/class_6490;method_15211(I)I
      named get Lnet/minecraft/util/collection/PaletteStorage;get(I)I
    • getData

      long[] getData()
      Returns the backing data of this storage.
      Returns:
      the backing data of this storage
      Mappings:
      Namespace Name Mixin selector
      official a Lakn;a()[J
      intermediary method_15212 Lnet/minecraft/class_6490;method_15212()[J
      named getData Lnet/minecraft/util/collection/PaletteStorage;getData()[J
    • getSize

      int getSize()
      Returns the size of, or the number of elements in, this storage.
      Returns:
      the size of, or the number of elements in, this storage
      Mappings:
      Namespace Name Mixin selector
      official b Lakn;b()I
      intermediary method_15215 Lnet/minecraft/class_6490;method_15215()I
      named getSize Lnet/minecraft/util/collection/PaletteStorage;getSize()I
    • getElementBits

      int getElementBits()
      Returns the number of bits each element in this storage uses.
      Returns:
      the number of bits each element in this storage uses
      Mappings:
      Namespace Name Mixin selector
      official c Lakn;c()I
      intermediary method_34896 Lnet/minecraft/class_6490;method_34896()I
      named getElementBits Lnet/minecraft/util/collection/PaletteStorage;getElementBits()I
    • forEach

      void forEach(IntConsumer action)
      Executes an action on all values in this storage, sequentially.
      Mappings:
      Namespace Name Mixin selector
      official a Lakn;a(Ljava/util/function/IntConsumer;)V
      intermediary method_21739 Lnet/minecraft/class_6490;method_21739(Ljava/util/function/IntConsumer;)V
      named forEach Lnet/minecraft/util/collection/PaletteStorage;forEach(Ljava/util/function/IntConsumer;)V
    • method_39892

      void method_39892(int[] int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lakn;a([I)V
      intermediary method_39892 Lnet/minecraft/class_6490;method_39892([I)V
      named method_39892 Lnet/minecraft/util/collection/PaletteStorage;method_39892([I)V
    • copy

      Mappings:
      Namespace Name Mixin selector
      official d Lakn;d()Lakn;
      intermediary method_39939 Lnet/minecraft/class_6490;method_39939()Lnet/minecraft/class_6490;
      named copy Lnet/minecraft/util/collection/PaletteStorage;copy()Lnet/minecraft/util/collection/PaletteStorage;