Package net.minecraft.util.collection
Class EmptyPaletteStorage
java.lang.Object
net.minecraft.util.collection.EmptyPaletteStorage
- All Implemented Interfaces:
- PaletteStorage
An empty palette storage has a size, but all its elements are 0.
- Mappings:
- Namespace - Name - official - aqb- intermediary - net/minecraft/class_6502- named - net/minecraft/util/collection/EmptyPaletteStorage
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncopy()voidforEach(IntConsumer action) Executes anactionon all values in this storage, sequentially.intget(int index) Returns the value atindexin this storage.long[]getData()Returns the backing data of this storage.intReturns the number of bits each element in this storage uses.intgetSize()Returns the size of, or the number of elements in, this storage.voidset(int index, int value) Setsvaluetoindexin this storage.intswap(int index, int value) Setsvaluetoindexand returns the previous value in this storage.voidwritePaletteIndices(int[] out) 
- 
Field Details- 
EMPTY_DATApublic static final long[] EMPTY_DATA- Mappings:
- Namespace - Name - Mixin selector - official - a- Laqb;a:[J- intermediary - field_34401- Lnet/minecraft/class_6502;field_34401:[J- named - EMPTY_DATA- Lnet/minecraft/util/collection/EmptyPaletteStorage;EMPTY_DATA:[J
 
- 
sizeprivate final int size- Mappings:
- Namespace - Name - Mixin selector - official - b- Laqb;b:I- intermediary - field_34402- Lnet/minecraft/class_6502;field_34402:I- named - size- Lnet/minecraft/util/collection/EmptyPaletteStorage;size:I
 
 
- 
- 
Constructor Details- 
EmptyPaletteStoragepublic EmptyPaletteStorage(int size) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Laqb;<init>(I)V- intermediary - <init>- Lnet/minecraft/class_6502;<init>(I)V- named - <init>- Lnet/minecraft/util/collection/EmptyPaletteStorage;<init>(I)V
 
 
- 
- 
Method Details- 
swappublic int swap(int index, int value) Setsvaluetoindexand returns the previous value in this storage.- Specified by:
- swapin interface- PaletteStorage
- Parameters:
- index- the index
- value- the value to set
- Returns:
- the previous value
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lans;a(II)I- intermediary - method_15214- Lnet/minecraft/class_6490;method_15214(II)I- named - swap- Lnet/minecraft/util/collection/PaletteStorage;swap(II)I
 
- 
setpublic void set(int index, int value) Setsvaluetoindexin this storage.- Specified by:
- setin interface- PaletteStorage
- Parameters:
- index- the index
- value- the value to set
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lans;b(II)V- intermediary - method_15210- Lnet/minecraft/class_6490;method_15210(II)V- named - set- Lnet/minecraft/util/collection/PaletteStorage;set(II)V
 
- 
getpublic int get(int index) Returns the value atindexin this storage.- Specified by:
- getin interface- PaletteStorage
- Parameters:
- index- the index
- Returns:
- the value at indexin this storage
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lans;a(I)I- intermediary - method_15211- Lnet/minecraft/class_6490;method_15211(I)I- named - get- Lnet/minecraft/util/collection/PaletteStorage;get(I)I
 
- 
getDatapublic long[] getData()Returns the backing data of this storage.- Specified by:
- getDatain interface- PaletteStorage
- Returns:
- the backing data of this storage
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lans;a()[J- intermediary - method_15212- Lnet/minecraft/class_6490;method_15212()[J- named - getData- Lnet/minecraft/util/collection/PaletteStorage;getData()[J
 
- 
getSizepublic int getSize()Returns the size of, or the number of elements in, this storage.- Specified by:
- getSizein interface- PaletteStorage
- Returns:
- the size of, or the number of elements in, this storage
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lans;b()I- intermediary - method_15215- Lnet/minecraft/class_6490;method_15215()I- named - getSize- Lnet/minecraft/util/collection/PaletteStorage;getSize()I
 
- 
getElementBitspublic int getElementBits()Returns the number of bits each element in this storage uses.- Specified by:
- getElementBitsin interface- PaletteStorage
- Returns:
- the number of bits each element in this storage uses
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lans;c()I- intermediary - method_34896- Lnet/minecraft/class_6490;method_34896()I- named - getElementBits- Lnet/minecraft/util/collection/PaletteStorage;getElementBits()I
 
- 
forEachExecutes anactionon all values in this storage, sequentially.- Specified by:
- forEachin interface- PaletteStorage
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lans;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
 
- 
writePaletteIndicespublic void writePaletteIndices(int[] out) - Specified by:
- writePaletteIndicesin interface- PaletteStorage
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lans;a([I)V- intermediary - method_39892- Lnet/minecraft/class_6490;method_39892([I)V- named - writePaletteIndices- Lnet/minecraft/util/collection/PaletteStorage;writePaletteIndices([I)V
 
- 
copy- Specified by:
- copyin interface- PaletteStorage
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lans;d()Lans;- 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;
 
 
-