Skip to content
ZERNYTH.

API reference / dev.zernyth.api.world

Dimension

public interface Dimension

Members

  • World getWorld()
  • String getIdentifier()
  • boolean isChunkLoaded(int chunkX, int chunkZ)
  • List<ChunkPosition> getLoadedChunks()
  • Optional<Block> getBlock(BlockPosition position)

    Empty if not loaded. Never loads/generates a chunk. Native reads recheck loading.

  • Optional<Entity> spawnEntity(Location location, String type)