Class DataPalette
java.lang.Object
com.github.retrooper.packetevents.protocol.world.chunk.palette.DataPalette
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDataPalette
(@NotNull Palette palette, @Nullable BaseStorage storage, PaletteType paletteType) -
Method Summary
Modifier and TypeMethodDescriptionstatic DataPalette
createEmpty
(PaletteType paletteType) static DataPalette
static DataPalette
int
get
(int x, int y, int z) static DataPalette
read
(NetStreamInput in, PaletteType paletteType) static DataPalette
read
(NetStreamInput in, PaletteType paletteType, boolean allowSingletonPalette) static DataPalette
int
set
(int x, int y, int z, int state) static void
write
(NetStreamOutput out, DataPalette palette)
-
Field Details
-
GLOBAL_PALETTE_BITS_PER_ENTRY
public static final int GLOBAL_PALETTE_BITS_PER_ENTRY- See Also:
-
palette
-
storage
-
paletteType
-
-
Constructor Details
-
DataPalette
public DataPalette(@NotNull @NotNull Palette palette, @Nullable @Nullable BaseStorage storage, PaletteType paletteType)
-
-
Method Details
-
createForChunk
-
createForBiome
-
createEmpty
-
read
-
read
public static DataPalette read(NetStreamInput in, PaletteType paletteType, boolean allowSingletonPalette) -
write
-
readLegacy
-
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.
-