Package com.infernalsuite.aswm.api.world
Interface SlimeChunk
public interface SlimeChunk
In-memory representation of a SRF chunk.
-
Method Summary
Modifier and TypeMethodDescriptionList<com.flowpowered.nbt.CompoundTag>
Returns all the entities of the chunk.com.flowpowered.nbt.CompoundTag
Returns the extra data of the chunk.com.flowpowered.nbt.CompoundTag
Returns the height maps of the chunk.Returns all the sections of the chunk.List<com.flowpowered.nbt.CompoundTag>
Returns all the tile entities of the chunk.int
getX()
Returns the X coordinate of the chunk.int
getZ()
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
com.flowpowered.nbt.CompoundTag getHeightMaps()Returns the height maps of the chunk. If it's a pre 1.13 world, aIntArrayTag
containing the height map will be stored inside here by the name of 'heightMap'.- Returns:
- A
CompoundTag
containing all the height maps of the chunk.
-
getTileEntities
List<com.flowpowered.nbt.CompoundTag> getTileEntities()Returns all the tile entities of the chunk.- Returns:
- A
CompoundTag
containing all the tile entities of the chunk.
-
getEntities
List<com.flowpowered.nbt.CompoundTag> getEntities()Returns all the entities of the chunk.- Returns:
- A
CompoundTag
containing all the entities
-
getExtraData
com.flowpowered.nbt.CompoundTag getExtraData()Returns the extra data of the chunk. Inside thisCompoundTag
can be stored any information to then be retrieved later, 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
CompoundTag
containing the extra data of the chunk,
-