Interface SlimeChunk


public interface SlimeChunk
In-memory representation of a SRF chunk.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<net.kyori.adventure.nbt.CompoundBinaryTag>
    Returns all the entities of the chunk.
    Map<String,net.kyori.adventure.nbt.BinaryTag>
    Returns the extra data of the chunk.
    net.kyori.adventure.nbt.CompoundBinaryTag
    Returns the height maps of the chunk.
    Returns all the sections of the chunk.
    List<net.kyori.adventure.nbt.CompoundBinaryTag>
    Returns all the tile entities of the chunk.
    net.kyori.adventure.nbt.CompoundBinaryTag
    Upgrade data used to fix the chunks.
    int
    Returns the X coordinate of the chunk.
    int
    Returns the Z coordinate of the chunk.
  • Method Details

    • getX

      int getX()
      Returns the X coordinate of the chunk.
      Returns:
      X coordinate of the chunk.
    • getZ

      int getZ()
      Returns the Z coordinate of the chunk.
      Returns:
      Z coordinate of the chunk.
    • getSections

      SlimeChunkSection[] getSections()
      Returns all the sections of the chunk.
      Returns:
      A SlimeChunkSection array.
    • getHeightMaps

      net.kyori.adventure.nbt.CompoundBinaryTag getHeightMaps()
      Returns the height maps of the chunk.
      Returns:
      A CompoundBinaryTag containing all the height maps of the chunk.
    • getTileEntities

      List<net.kyori.adventure.nbt.CompoundBinaryTag> getTileEntities()
      Returns all the tile entities of the chunk.
      Returns:
      A CompoundBinaryTag containing all the tile entities of the chunk.
    • getEntities

      List<net.kyori.adventure.nbt.CompoundBinaryTag> getEntities()
      Returns all the entities of the chunk.
      Returns:
      A CompoundBinaryTag containing all the entities
    • getExtraData

      Map<String,net.kyori.adventure.nbt.BinaryTag> getExtraData()
      Returns the extra data of the chunk. Any information can be stored in this Map and later retrieved, as it's saved alongside the chunk data.
      Beware, a compound tag under the key "ChunkBukkitValues" will be stored here. It is used for storing chunk-based Bukkit PDC. Do not overwrite it.
      Returns:
      A Map containing the extra data of the chunk as NBT tags,
    • getUpgradeData

      @Nullable net.kyori.adventure.nbt.CompoundBinaryTag getUpgradeData()
      Upgrade data used to fix the chunks. Not intended to be serialized.
      Returns:
      A CompoundBinaryTag containing the upgrade data of the chunk,