Class DataPalette
java.lang.Object
com.github.retrooper.packetevents.protocol.world.chunk.palette.DataPalette
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataPalette(@NotNull Palette palette, @Nullable BaseStorage storage, PaletteType paletteType) -
Method Summary
Modifier and TypeMethodDescriptionstatic DataPalettecreateEmpty(PaletteType paletteType) static DataPalettestatic DataPaletteintget(int x, int y, int z) static DataPaletteread(NetStreamInput in, PaletteType paletteType) static DataPaletteintset(int x, int y, int z, int state) static voidwrite(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
-
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.
-