Class DataPalette
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.chunk.DataPalette
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic DataPalettecreate(@NonNull Palette palette, 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@NonNull PaletteinthashCode()intset(int x, int y, int z, int state) @NonNull StringtoString()
-
Constructor Details
-
DataPalette
-
-
Method Details
-
createForBlockState
-
createForBiome
-
createEmpty
-
create
public static DataPalette create(@NonNull @NonNull Palette palette, 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
-