Class DataPalette
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.chunk.DataPalette
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic DataPalettecreate(Palette palette, @Nullable BitStorage storage, PaletteType paletteType, int registrySize) static DataPalettecreateEmpty(PaletteType paletteType, int initial, int registrySize) static DataPalettecreateForBiome(int initialBiome, int biomeRegistrySize) static DataPalettecreateForBlockState(int initialState, int blockStateRegistrySize) booleanintget(int x, int y, int z) int@Nullable BitStorageinthashCode()intset(int x, int y, int z, int state) toString()
-
Constructor Details
-
DataPalette
-
-
Method Details
-
createForBlockState
-
createForBiome
-
createEmpty
-
create
public static DataPalette create(Palette palette, @Nullable BitStorage storage, PaletteType paletteType, int registrySize) -
get
public int get(int x, int y, int z) -
set
public int set(int x, int y, int z, int state) - Returns:
- the old value present in the storage.
-
getPalette
-
getStorage
-
getPaletteType
-
getGlobalPaletteBitsPerEntry
public int getGlobalPaletteBitsPerEntry() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-