Class PalettedWorldState
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.chunk.PalettedWorldState
-
Constructor Summary
ConstructorsConstructorDescriptionPalettedWorldState(int chunkSectionCount, int blockStateRegistrySize, int defaultBlockStateId, int biomeRegistrySize, int defaultBiomeStateId, it.unimi.dsi.fastutil.ints.IntSet fluidStates) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintintintintintintit.unimi.dsi.fastutil.ints.IntSetinthashCode()@NonNull StringtoString()@NonNull PalettedWorldStatewithBiomeRegistrySize(int biomeRegistrySize) @NonNull PalettedWorldStatewithBlockStateRegistrySize(int blockStateRegistrySize) @NonNull PalettedWorldStatewithChunkSectionCount(int chunkSectionCount) @NonNull PalettedWorldStatewithDefaultBiomeStateId(int defaultBiomeStateId) @NonNull PalettedWorldStatewithDefaultBlockStateId(int defaultBlockStateId) @NonNull PalettedWorldStatewithFluidStates(it.unimi.dsi.fastutil.ints.IntSet fluidStates)
-
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
-
hashCode
public int hashCode() -
toString
-
withChunkSectionCount
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBlockStateRegistrySize
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDefaultBlockStateId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBiomeRegistrySize
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withDefaultBiomeStateId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withFluidStates
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
getBlockStatePaletteBitsPerEntry
public int getBlockStatePaletteBitsPerEntry() -
getBiomePaletteBitsPerEntry
public int getBiomePaletteBitsPerEntry()
-