Package net.minecraft.world.chunk
Class PaletteProvider<T>
java.lang.Object
net.minecraft.world.chunk.PaletteProvider<T>
A palette provider determines what type of palette to choose given the
bits used to represent each element. In addition, it controls how the
data in the serialized container is read based on the palette given.
- Mappings:
Namespace Name named net/minecraft/world/chunk/PaletteProviderintermediary net/minecraft/class_6563official emj
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Palette.Factory(package private) static final PaletteType(package private) static final PaletteType(package private) static final PaletteType(package private) static final PaletteTypeprivate static final Palette.Factory(package private) static final PaletteType(package private) static final PaletteType(package private) static final PaletteType(package private) static final PaletteTypeprotected final intprivate final intprivate final IndexedIterable<T> private final IdListPalette<T> private static final Palette.Factory(package private) static final PaletteTypeprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcomputeIndex(int x, int y, int z) Returns the index of an object in the storage given its x, y, z coordinates.protected abstract PaletteTypecreateType(int bitsInStorage) Creates a palette type that is suitable to represent objects withbitsInStoragesize in the storage.protected PaletteTypecreateTypeFromSize(int size) static <T> PaletteProvider<T> forBiomes(IndexedIterable<T> idList) static <T> PaletteProvider<T> forBlockStates(IndexedIterable<T> idList) intgetSize()private static inttoBits(int size)
-
Field Details
-
SINGULAR
- Mappings:
Namespace Name Mixin selector named SINGULARLnet/minecraft/world/chunk/PaletteProvider;SINGULAR:Lnet/minecraft/world/chunk/Palette$Factory;intermediary field_34566Lnet/minecraft/class_6563;field_34566:Lnet/minecraft/class_2837$class_6559;official bLemj;b:Lemc$a;
-
ARRAY
- Mappings:
Namespace Name Mixin selector named ARRAYLnet/minecraft/world/chunk/PaletteProvider;ARRAY:Lnet/minecraft/world/chunk/Palette$Factory;intermediary field_34567Lnet/minecraft/class_6563;field_34567:Lnet/minecraft/class_2837$class_6559;official cLemj;c:Lemc$a;
-
BI_MAP
- Mappings:
Namespace Name Mixin selector named BI_MAPLnet/minecraft/world/chunk/PaletteProvider;BI_MAP:Lnet/minecraft/world/chunk/Palette$Factory;intermediary field_34568Lnet/minecraft/class_6563;field_34568:Lnet/minecraft/class_2837$class_6559;official dLemj;d:Lemc$a;
-
SINGULAR_TYPE
- Mappings:
Namespace Name Mixin selector named SINGULAR_TYPELnet/minecraft/world/chunk/PaletteProvider;SINGULAR_TYPE:Lnet/minecraft/world/chunk/PaletteType;intermediary field_62438Lnet/minecraft/class_6563;field_62438:Lnet/minecraft/class_11895;official eLemj;e:Lelq;
-
ARRAY_1_TYPE
- Mappings:
Namespace Name Mixin selector named ARRAY_1_TYPELnet/minecraft/world/chunk/PaletteProvider;ARRAY_1_TYPE:Lnet/minecraft/world/chunk/PaletteType;intermediary field_62439Lnet/minecraft/class_6563;field_62439:Lnet/minecraft/class_11895;official fLemj;f:Lelq;
-
ARRAY_2_TYPE
- Mappings:
Namespace Name Mixin selector named ARRAY_2_TYPELnet/minecraft/world/chunk/PaletteProvider;ARRAY_2_TYPE:Lnet/minecraft/world/chunk/PaletteType;intermediary field_62440Lnet/minecraft/class_6563;field_62440:Lnet/minecraft/class_11895;official gLemj;g:Lelq;
-
ARRAY_3_TYPE
- Mappings:
Namespace Name Mixin selector named ARRAY_3_TYPELnet/minecraft/world/chunk/PaletteProvider;ARRAY_3_TYPE:Lnet/minecraft/world/chunk/PaletteType;intermediary field_62441Lnet/minecraft/class_6563;field_62441:Lnet/minecraft/class_11895;official hLemj;h:Lelq;
-
ARRAY_4_TYPE
- Mappings:
Namespace Name Mixin selector named ARRAY_4_TYPELnet/minecraft/world/chunk/PaletteProvider;ARRAY_4_TYPE:Lnet/minecraft/world/chunk/PaletteType;intermediary field_62442Lnet/minecraft/class_6563;field_62442:Lnet/minecraft/class_11895;official iLemj;i:Lelq;
-
BI_MAP_5_TYPE
- Mappings:
Namespace Name Mixin selector named BI_MAP_5_TYPELnet/minecraft/world/chunk/PaletteProvider;BI_MAP_5_TYPE:Lnet/minecraft/world/chunk/PaletteType;intermediary field_62443Lnet/minecraft/class_6563;field_62443:Lnet/minecraft/class_11895;official jLemj;j:Lelq;
-
BI_MAP_6_TYPE
- Mappings:
Namespace Name Mixin selector named BI_MAP_6_TYPELnet/minecraft/world/chunk/PaletteProvider;BI_MAP_6_TYPE:Lnet/minecraft/world/chunk/PaletteType;intermediary field_62444Lnet/minecraft/class_6563;field_62444:Lnet/minecraft/class_11895;official kLemj;k:Lelq;
-
BI_MAP_7_TYPE
- Mappings:
Namespace Name Mixin selector named BI_MAP_7_TYPELnet/minecraft/world/chunk/PaletteProvider;BI_MAP_7_TYPE:Lnet/minecraft/world/chunk/PaletteType;intermediary field_62445Lnet/minecraft/class_6563;field_62445:Lnet/minecraft/class_11895;official lLemj;l:Lelq;
-
BI_MAP_8_TYPE
- Mappings:
Namespace Name Mixin selector named BI_MAP_8_TYPELnet/minecraft/world/chunk/PaletteProvider;BI_MAP_8_TYPE:Lnet/minecraft/world/chunk/PaletteType;intermediary field_62446Lnet/minecraft/class_6563;field_62446:Lnet/minecraft/class_11895;official mLemj;m:Lelq;
-
idList
- Mappings:
Namespace Name Mixin selector named idListLnet/minecraft/world/chunk/PaletteProvider;idList:Lnet/minecraft/util/collection/IndexedIterable;intermediary field_62542Lnet/minecraft/class_6563;field_62542:Lnet/minecraft/class_2359;official nLemj;n:Ljp;
-
palette
- Mappings:
Namespace Name Mixin selector named paletteLnet/minecraft/world/chunk/PaletteProvider;palette:Lnet/minecraft/world/chunk/IdListPalette;intermediary field_62543Lnet/minecraft/class_6563;field_62543:Lnet/minecraft/class_2816;official oLemj;o:Lelt;
-
bitsInMemory
protected final int bitsInMemory- Mappings:
Namespace Name Mixin selector named bitsInMemoryLnet/minecraft/world/chunk/PaletteProvider;bitsInMemory:Iintermediary field_62541Lnet/minecraft/class_6563;field_62541:Iofficial aLemj;a:I
-
bitsPerAxis
private final int bitsPerAxis- Mappings:
Namespace Name Mixin selector named bitsPerAxisLnet/minecraft/world/chunk/PaletteProvider;bitsPerAxis:Iintermediary field_62544Lnet/minecraft/class_6563;field_62544:Iofficial pLemj;p:I
-
size
private final int size- Mappings:
Namespace Name Mixin selector named sizeLnet/minecraft/world/chunk/PaletteProvider;size:Iintermediary field_62545Lnet/minecraft/class_6563;field_62545:Iofficial qLemj;q:I
-
-
Constructor Details
-
PaletteProvider
PaletteProvider(IndexedIterable<T> idList, int bitsPerAxis) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/chunk/PaletteProvider;<init>(Lnet/minecraft/util/collection/IndexedIterable;I)Vintermediary <init>Lnet/minecraft/class_6563;<init>(Lnet/minecraft/class_2359;I)Vofficial <init>Lemj;<init>(Ljp;I)V
-
-
Method Details
-
forBlockStates
- Mappings:
Namespace Name Mixin selector named forBlockStatesLnet/minecraft/world/chunk/PaletteProvider;forBlockStates(Lnet/minecraft/util/collection/IndexedIterable;)Lnet/minecraft/world/chunk/PaletteProvider;intermediary method_74162Lnet/minecraft/class_6563;method_74162(Lnet/minecraft/class_2359;)Lnet/minecraft/class_6563;official aLemj;a(Ljp;)Lemj;
-
forBiomes
- Mappings:
Namespace Name Mixin selector named forBiomesLnet/minecraft/world/chunk/PaletteProvider;forBiomes(Lnet/minecraft/util/collection/IndexedIterable;)Lnet/minecraft/world/chunk/PaletteProvider;intermediary method_74165Lnet/minecraft/class_6563;method_74165(Lnet/minecraft/class_2359;)Lnet/minecraft/class_6563;official bLemj;b(Ljp;)Lemj;
-
getSize
public int getSize()- Mappings:
Namespace Name Mixin selector named getSizeLnet/minecraft/world/chunk/PaletteProvider;getSize()Iintermediary method_74161Lnet/minecraft/class_6563;method_74161()Iofficial aLemj;a()I
-
computeIndex
public int computeIndex(int x, int y, int z) Returns the index of an object in the storage given its x, y, z coordinates.- Parameters:
x- the x coordinatey- the y coordinatez- the z coordinate- Returns:
- the index of an object in the storage given its x, y, z coordinates
- Mappings:
Namespace Name Mixin selector named computeIndexLnet/minecraft/world/chunk/PaletteProvider;computeIndex(III)Iintermediary method_38313Lnet/minecraft/class_6563;method_38313(III)Iofficial aLemj;a(III)I
-
getIdList
- Mappings:
Namespace Name Mixin selector named getIdListLnet/minecraft/world/chunk/PaletteProvider;getIdList()Lnet/minecraft/util/collection/IndexedIterable;intermediary method_74163Lnet/minecraft/class_6563;method_74163()Lnet/minecraft/class_2359;official bLemj;b()Ljp;
-
getPalette
- Mappings:
Namespace Name Mixin selector named getPaletteLnet/minecraft/world/chunk/PaletteProvider;getPalette()Lnet/minecraft/world/chunk/IdListPalette;intermediary method_74166Lnet/minecraft/class_6563;method_74166()Lnet/minecraft/class_2816;official cLemj;c()Lelt;
-
createType
Creates a palette type that is suitable to represent objects withbitsInStoragesize in the storage.- Returns:
- the palette type
- Mappings:
Namespace Name Mixin selector named createTypeLnet/minecraft/world/chunk/PaletteProvider;createType(I)Lnet/minecraft/world/chunk/PaletteType;intermediary method_38314Lnet/minecraft/class_6563;method_38314(I)Lnet/minecraft/class_11895;official aLemj;a(I)Lelq;
-
createTypeFromSize
- Mappings:
Namespace Name Mixin selector named createTypeFromSizeLnet/minecraft/world/chunk/PaletteProvider;createTypeFromSize(I)Lnet/minecraft/world/chunk/PaletteType;intermediary method_74164Lnet/minecraft/class_6563;method_74164(I)Lnet/minecraft/class_11895;official bLemj;b(I)Lelq;
-
toBits
private static int toBits(int size) - Mappings:
Namespace Name Mixin selector named toBitsLnet/minecraft/world/chunk/PaletteProvider;toBits(I)Iintermediary method_74167Lnet/minecraft/class_6563;method_74167(I)Iofficial cLemj;c(I)I
-