Class PalettedWorldState

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

public final class PalettedWorldState extends Object
  • Constructor Details

    • PalettedWorldState

      public PalettedWorldState(int chunkSectionCount, int blockStateRegistrySize, int defaultBlockStateId, int biomeRegistrySize, int defaultBiomeStateId, it.unimi.dsi.fastutil.ints.IntSet fluidStates)
  • Method Details

    • getChunkSectionCount

      public int getChunkSectionCount()
    • getBlockStateRegistrySize

      public int getBlockStateRegistrySize()
    • getDefaultBlockStateId

      public int getDefaultBlockStateId()
    • getBiomeRegistrySize

      public int getBiomeRegistrySize()
    • getDefaultBiomeStateId

      public int getDefaultBiomeStateId()
    • getFluidStates

      public it.unimi.dsi.fastutil.ints.IntSet getFluidStates()
    • equals

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

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

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

      public @NonNull PalettedWorldState withChunkSectionCount(int chunkSectionCount)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBlockStateRegistrySize

      public @NonNull PalettedWorldState withBlockStateRegistrySize(int blockStateRegistrySize)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDefaultBlockStateId

      public @NonNull PalettedWorldState withDefaultBlockStateId(int defaultBlockStateId)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withBiomeRegistrySize

      public @NonNull PalettedWorldState withBiomeRegistrySize(int biomeRegistrySize)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDefaultBiomeStateId

      public @NonNull PalettedWorldState withDefaultBiomeStateId(int defaultBiomeStateId)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFluidStates

      public @NonNull PalettedWorldState withFluidStates(it.unimi.dsi.fastutil.ints.IntSet fluidStates)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • getBlockStatePaletteBitsPerEntry

      public int getBlockStatePaletteBitsPerEntry()
    • getBiomePaletteBitsPerEntry

      public int getBiomePaletteBitsPerEntry()