Class SchematicSponge
java.lang.Object
net.sandrohc.schematic4j.schematic.SchematicSponge
- All Implemented Interfaces:
Schematic
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionSchematicSponge(int version, int dataVersion, SchematicSponge.Metadata metadata, int width, int height, int length, int[] offset, SchematicBlock[][][] blocks, Collection<SchematicBlockEntity> blockEntities, Collection<SchematicEntity> entities, SchematicBiome[][] biomes) -
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.intThe 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.toString()
-
Constructor Details
-
SchematicSponge
public SchematicSponge(int version, int dataVersion, SchematicSponge.Metadata metadata, int width, int height, int length, int[] offset, SchematicBlock[][][] blocks, Collection<SchematicBlockEntity> blockEntities, Collection<SchematicEntity> entities, SchematicBiome[][] biomes)
-
-
Method Details
-
getFormat
-
getWidth
public int getWidth()Description copied from interface:SchematicThe width of the schematic. -
getHeight
public int getHeight()Description copied from interface:SchematicThe height of the schematic. -
getLength
public int getLength()Description copied from interface:SchematicThe length of the schematic. -
getOffset
public int[] getOffset()Description copied from interface:SchematicThe relative offset of the schematic. -
getBlock
Description copied from interface:SchematicThe block at the specified block.Depending on the schematic format, each coordinate can also be negative and is relative to the schematic origin.
-
getBlocks
Description copied from interface:SchematicIterator for iterating over the list of blocks. -
getBlockEntities
Description copied from interface:SchematicThe list of tile/block entities.- Specified by:
getBlockEntitiesin interfaceSchematic- Returns:
- list of block entities
-
getEntities
Description copied from interface:SchematicThe list of entities.- Specified by:
getEntitiesin interfaceSchematic- Returns:
- list of entities
-
getBiome
Description copied from interface:SchematicThe biome at the specified block. -
getBiomes
Description copied from interface:SchematicIterator for iterating over the list of biomes. -
getName
Description copied from interface:SchematicThe name of the schematic. -
getAuthor
Description copied from interface:SchematicThe name of the author of the schematic. -
date
Description copied from interface:SchematicThe date that this schematic was created on. -
getDataVersion
public int getDataVersion() -
getMetadata
-
toString
-