net.minecraft.world.chunk

public abstract class PaletteProvider<T>

net.minecraft.world.level.chunk.Strategy
net.minecraft.class_6563
net.minecraft.world.chunk.PaletteProvider

Field summary

Modifier and TypeField
private static final Palette$Factory
SINGLE_VALUE_PALETTE_FACTORY
field_34566
SINGULAR
private static final Palette$Factory
LINEAR_PALETTE_FACTORY
field_34567
ARRAY
private static final Palette$Factory
HASHMAP_PALETTE_FACTORY
field_34568
BI_MAP
private static final PaletteType
ZERO_BITS
field_62438
SINGULAR_TYPE
private static final PaletteType
ONE_BIT_LINEAR
field_62439
ARRAY_1_TYPE
private static final PaletteType
TWO_BITS_LINEAR
field_62440
ARRAY_2_TYPE
private static final PaletteType
THREE_BITS_LINEAR
field_62441
ARRAY_3_TYPE
private static final PaletteType
FOUR_BITS_LINEAR
field_62442
ARRAY_4_TYPE
private static final PaletteType
FIVE_BITS_HASHMAP
field_62443
BI_MAP_5_TYPE
private static final PaletteType
SIX_BITS_HASHMAP
field_62444
BI_MAP_6_TYPE
private static final PaletteType
SEVEN_BITS_HASHMAP
field_62445
BI_MAP_7_TYPE
private static final PaletteType
EIGHT_BITS_HASHMAP
field_62446
BI_MAP_8_TYPE
private final IndexedIterable<T>
globalMap
field_62542
idList
private final IdListPalette<T>
globalPalette
field_62543
palette
protected final int
globalPaletteBitsInMemory
field_62541
bitsInMemory
private final int
bitsPerAxis
field_62544
bitsPerAxis
private final int
entryCount
field_62545
size

Constructor summary

ModifierConstructor
private (IndexedIterable<T> idList, int bitsPerAxis)

Method summary

Modifier and TypeMethod
public static <T> PaletteProvider<T>
createForBlockStates(IdMap<T> registry)
method_74162(class_2359<T> arg0)
forBlockStates(IndexedIterable<T> idList)
public static <T> PaletteProvider<T>
createForBiomes(IdMap<T> registry)
method_74165(class_2359<T> arg0)
forBiomes(IndexedIterable<T> idList)
public int
entryCount()
method_74161()
getSize()
public int
getIndex(int x, int y, int z)
method_38313(int arg0, int arg1, int arg2)
computeIndex(int x, int y, int z)
public IndexedIterable<T>
globalMap()
method_74163()
getIdList()
public IdListPalette<T>
globalPalette()
method_74166()
getPalette()
protected abstract PaletteType
getConfigurationForBitCount(int entryBits)
method_38314(int arg0)
createType(int bitsInStorage)
protected PaletteType
getConfigurationForPaletteSize(int paletteSize)
method_74164(int arg0)
createTypeFromSize(int size)
private static int
minimumBitsRequiredForDistinctValues(int count)
method_74167(int arg0)
toBits(int size)