java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.chunk.DataPalette

public class DataPalette extends Object
  • Field Details

    • GLOBAL_PALETTE_BITS_PER_ENTRY

      @Deprecated(forRemoval=true) public static final int GLOBAL_PALETTE_BITS_PER_ENTRY
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

  • Method Details

    • createForChunk

      public static DataPalette createForChunk()
    • createForChunk

      @Deprecated(forRemoval=true) public static DataPalette createForChunk(int globalPaletteBits)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createForBiome

      @Deprecated(forRemoval=true) public static DataPalette createForBiome(int globalPaletteBits)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • createForBiome

      public static DataPalette createForBiome()
    • createEmpty

      public static DataPalette createEmpty(PaletteType paletteType)
    • createEmpty

      @Deprecated(forRemoval=true) public static DataPalette createEmpty(PaletteType paletteType, int globalPaletteBits)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • 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

      @NonNull public @NonNull Palette getPalette()
    • getStorage

      public BitStorage getStorage()
    • getPaletteType

      public PaletteType getPaletteType()
    • setPalette

      public void setPalette(@NonNull @NonNull Palette palette)
    • setStorage

      public void setStorage(BitStorage storage)
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object