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 named net/minecraft/util/collection/PaletteStorage
intermediary net/minecraft/class_6490
official axn
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
void
forEach
(IntConsumer action) Executes anaction
on all values in this storage, sequentially.int
get
(int index) Returns the value atindex
in this storage.long[]
getData()
Returns the backing data of this storage.int
Returns the number of bits each element in this storage uses.int
getSize()
Returns the size of, or the number of elements in, this storage.void
set
(int index, int value) Setsvalue
toindex
in this storage.int
swap
(int index, int value) Setsvalue
toindex
and returns the previous value in this storage.void
writePaletteIndices
(int[] out)
-
Method Details
-
swap
int swap(int index, int value) Setsvalue
toindex
and returns the previous value in this storage.- Parameters:
index
- the indexvalue
- 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
Laxn;a(II)I
-
set
void set(int index, int value) Setsvalue
toindex
in this storage.- Parameters:
index
- the indexvalue
- 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
Laxn;b(II)V
-
get
int get(int index) Returns the value atindex
in this storage.- 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
Laxn;a(I)I
-
getData
long[] getData()Returns the backing data of this storage.- 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
Laxn;a()[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 named getSize
Lnet/minecraft/util/collection/PaletteStorage;getSize()I
intermediary method_15215
Lnet/minecraft/class_6490;method_15215()I
official b
Laxn;b()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 named getElementBits
Lnet/minecraft/util/collection/PaletteStorage;getElementBits()I
intermediary method_34896
Lnet/minecraft/class_6490;method_34896()I
official c
Laxn;c()I
-
forEach
Executes anaction
on all values in this storage, sequentially.- 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
Laxn;a(Ljava/util/function/IntConsumer;)V
-
writePaletteIndices
void writePaletteIndices(int[] out) - 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
Laxn;a([I)V
-
copy
PaletteStorage copy()- 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
Laxn;d()Laxn;
-