Package xyz.calcugames.levelz
Class Level
java.lang.Object
xyz.calcugames.levelz.Level
- All Implemented Interfaces:
Cloneable
,Iterable<LevelObject>
Represents a LevelZ level.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
abstract @NotNull @Unmodifiable Set<LevelObject>
Gets an immutable copy of all blocks to their coordinates in this level.abstract @NotNull @Unmodifiable Set<Coordinate>
Gets an immutable copy of all coordinates in this level.Gets an immutable copy of the raw headers for this level.abstract @NotNull Coordinate
getSpawn()
Gets the spawn point for this level.final Iterator<LevelObject>
iterator()
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Level
protected Level()Creates an empty Level. -
Level
Creates a new Level with the given headers.- Parameters:
headers
- Level Headers
-
-
Method Details
-
getSpawn
Gets the spawn point for this level.- Returns:
- Level Spawn
-
getCoordinates
Gets an immutable copy of all coordinates in this level.- Returns:
- Level Coordinates
-
getBlocks
Gets an immutable copy of all blocks to their coordinates in this level.- Returns:
- Level Blocks
-
getHeaders
Gets an immutable copy of the raw headers for this level.- Returns:
- Level Headers
-
clone
-
iterator
- Specified by:
iterator
in interfaceIterable<LevelObject>
-