Package com.infernalsuite.asp.api.world
Interface SlimeChunk
public interface SlimeChunk
In-memory representation of a SRF chunk.
- 
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.nbt.ListBinaryTagReturns all block ticks of the chunk.List<net.kyori.adventure.nbt.CompoundBinaryTag> Returns all the entities of the chunk.Returns the extra data of the chunk.net.kyori.adventure.nbt.ListBinaryTagReturns all fluid ticks of the chunk.net.kyori.adventure.nbt.CompoundBinaryTagReturns the height maps of the chunk.net.kyori.adventure.nbt.CompoundBinaryTagReturns the poi sections 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.CompoundBinaryTagUpgrade data used to fix the chunks.intgetX()Returns the X coordinate of the chunk.intgetZ()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 
SlimeChunkSectionarray. 
 - 
getHeightMaps
@Nullable net.kyori.adventure.nbt.CompoundBinaryTag getHeightMaps()Returns the height maps of the chunk.- Returns:
 - A 
CompoundBinaryTagcontaining 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 
CompoundBinaryTagcontaining all the tile entities of the chunk. 
 - 
getEntities
List<net.kyori.adventure.nbt.CompoundBinaryTag> getEntities()Returns all the entities of the chunk.- Returns:
 - A 
CompoundBinaryTagcontaining all the entities 
 - 
getExtraData
Returns the extra data of the chunk. Any information can be stored in thisMapand 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 
Mapcontaining 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 
CompoundBinaryTagcontaining the upgrade data of the chunk, 
 - 
getBlockTicks
@Nullable net.kyori.adventure.nbt.ListBinaryTag getBlockTicks()Returns all block ticks of the chunk. This data is only saved whenSlimeProperties.SAVE_BLOCK_TICKSis true.Even if
SlimeProperties.SAVE_BLOCK_TICKSis false, this might still return aListBinaryTagcontaining the block ticks, if the data was present when the world was read or when the chunk is currently loaded.- Returns:
 - A 
ListBinaryTagcontaining all the block ticks of the chunk, if present. - See Also:
 
 - 
getFluidTicks
@Nullable net.kyori.adventure.nbt.ListBinaryTag getFluidTicks()Returns all fluid ticks of the chunk. This data is only saved whenSlimeProperties.SAVE_FLUID_TICKSis true.Even if
SlimeProperties.SAVE_FLUID_TICKSis false, this might still return aListBinaryTagcontaining the fluid ticks, if the data was present when the world was read or when the chunk is currently loaded.- Returns:
 - A 
ListBinaryTagcontaining all the fluid ticks of the chunk, if present. - See Also:
 
 - 
getPoiChunkSections
@Nullable net.kyori.adventure.nbt.CompoundBinaryTag getPoiChunkSections()Returns the poi sections of the chunk. This data is only saved whenSlimeProperties.SAVE_POIis true.Even if
SlimeProperties.SAVE_POIis false, this might still return aCompoundBinaryTagcontaining the poi sections, if the data was present when the world was read or when the chunk is currently loaded.- Returns:
 - A 
CompoundBinaryTagcontaining the poi chunks of the chunk, if present. - See Also:
 
 
 -