Class EmptyPaletteStorage

java.lang.Object
net.minecraft.util.collection.EmptyPaletteStorage
All Implemented Interfaces:
PaletteStorage

public class EmptyPaletteStorage extends Object implements PaletteStorage
An empty palette storage has a size, but all its elements are 0.
Mappings:
Namespace Name
named net/minecraft/util/collection/EmptyPaletteStorage
intermediary net/minecraft/class_6502
official azu
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    static final long[]
     
    private final int
     
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    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
    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.
    void
     

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • EMPTY_DATA Link icon

      public static final long[] EMPTY_DATA
      Mappings:
      Namespace Name Mixin selector
      named EMPTY_DATA Lnet/minecraft/util/collection/EmptyPaletteStorage;EMPTY_DATA:[J
      intermediary field_34401 Lnet/minecraft/class_6502;field_34401:[J
      official a Lazu;a:[J
    • size Link icon

      private final int size
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/util/collection/EmptyPaletteStorage;size:I
      intermediary field_34402 Lnet/minecraft/class_6502;field_34402:I
      official b Lazu;b:I
  • Constructor Details Link icon

    • EmptyPaletteStorage Link icon

      public EmptyPaletteStorage(int size)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/collection/EmptyPaletteStorage;<init>(I)V
      intermediary <init> Lnet/minecraft/class_6502;<init>(I)V
      official <init> Lazu;<init>(I)V
  • Method Details Link icon

    • swap Link icon

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

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

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

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

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

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

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

      public void writePaletteIndices(int[] out)
      Specified by:
      writePaletteIndices in interface PaletteStorage
      Mappings:
      Namespace Name Mixin selector
      named writePaletteIndices Lnet/minecraft/util/collection/PaletteStorage;writePaletteIndices([I)V
      intermediary method_39892 Lnet/minecraft/class_6490;method_39892([I)V
      official a Laxc;a([I)V
    • copy Link icon

      public PaletteStorage copy()
      Specified by:
      copy in interface PaletteStorage
      Mappings:
      Namespace Name Mixin selector
      named copy Lnet/minecraft/util/collection/PaletteStorage;copy()Lnet/minecraft/util/collection/PaletteStorage;
      intermediary method_39939 Lnet/minecraft/class_6490;method_39939()Lnet/minecraft/class_6490;
      official d Laxc;d()Laxc;