Package net.minecraft.util.collection
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 - alf- intermediary - net/minecraft/class_6490- named - net/minecraft/util/collection/PaletteStorage
- 
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.voidmethod_39892(int[] int2) voidset(int index, int value) Setsvaluetoindexin this storage.intswap(int index, int value) Setsvaluetoindexand returns the previous value in this storage.
- 
Method Details- 
swapint swap(int index, int value) Setsvaluetoindexand 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- Lalf;a(II)I- intermediary - method_15214- Lnet/minecraft/class_6490;method_15214(II)I- named - swap- Lnet/minecraft/util/collection/PaletteStorage;swap(II)I
 
- 
setvoid set(int index, int value) Setsvaluetoindexin this storage.- Parameters:
- index- the index
- value- the value to set
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lalf;b(II)V- intermediary - method_15210- Lnet/minecraft/class_6490;method_15210(II)V- named - set- Lnet/minecraft/util/collection/PaletteStorage;set(II)V
 
- 
getint get(int index) Returns the value atindexin this storage.- Parameters:
- index- the index
- Returns:
- the value at indexin this storage
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lalf;a(I)I- intermediary - method_15211- Lnet/minecraft/class_6490;method_15211(I)I- named - get- Lnet/minecraft/util/collection/PaletteStorage;get(I)I
 
- 
getDatalong[] getData()Returns the backing data of this storage.- Returns:
- the backing data of this storage
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lalf;a()[J- intermediary - method_15212- Lnet/minecraft/class_6490;method_15212()[J- named - getData- Lnet/minecraft/util/collection/PaletteStorage;getData()[J
 
- 
getSizeint 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- Lalf;b()I- intermediary - method_15215- Lnet/minecraft/class_6490;method_15215()I- named - getSize- Lnet/minecraft/util/collection/PaletteStorage;getSize()I
 
- 
getElementBitsint 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- Lalf;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.- Mappings:
- Namespace - Name - Mixin selector - official - a- Lalf;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_39892void method_39892(int[] int2) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lalf;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
 
- 
copyPaletteStorage copy()- Mappings:
- Namespace - Name - Mixin selector - official - d- Lalf;d()Lalf;- 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;
 
 
-