Interface Schematic
- All Known Implementing Classes:
SchematicSponge
public interface Schematic
-
Method Summary
Modifier and TypeMethodDescriptiondate()The date that this schematic was created on.The name of the author of the schematic.getBiome(int x, int z) The biome at the specified block.Iterator for iterating over the list of biomes.getBlock(int x, int y, int z) The block at the specified block.The list of tile/block entities.Iterator for iterating over the list of blocks.The list of entities.intThe height of the schematic.intThe length of the schematic.getName()The name of the schematic.int[]The relative offset of the schematic.intgetWidth()The width of the schematic.
-
Method Details
-
getFormat
SchematicFormat getFormat() -
getWidth
int getWidth()The width of the schematic.- Returns:
- the schematic width
-
getHeight
int getHeight()The height of the schematic.- Returns:
- the schematic height
-
getLength
int getLength()The length of the schematic.- Returns:
- the schematic length
-
getOffset
int[] getOffset()The relative offset of the schematic.- Returns:
- the schematic length
-
getBlock
The block at the specified block.Depending on the schematic format, each coordinate can also be negative and is relative to the schematic origin.
- Parameters:
x- The X coordinate, can be a negative valuey- The X coordinate, can be a negative valuez- The X coordinate, can be a negative value- Returns:
- block, or
nullif information is not available.
-
getBlocks
BlockIterator getBlocks()Iterator for iterating over the list of blocks.- Returns:
- an iterator
-
getBlockEntities
Collection<SchematicBlockEntity> getBlockEntities()The list of tile/block entities.- Returns:
- list of block entities
-
getEntities
Collection<SchematicEntity> getEntities()The list of entities.- Returns:
- list of entities
-
getBiome
The biome at the specified block.- Parameters:
x- the X coordinatez- the Z coordinate- Returns:
- biome, or
nullif information is not available.
-
getBiomes
BiomeIterator getBiomes()Iterator for iterating over the list of biomes.- Returns:
- an iterator
-
getName
String getName()The name of the schematic.- Returns:
- schematic name, or
nullif information is not available.
-
getAuthor
String getAuthor()The name of the author of the schematic.- Returns:
- author, or
nullif information is not available.
-
date
LocalDateTime date()The date that this schematic was created on.- Returns:
- creation date, or
nullif information is not available.
-