Interface StructureTemplate

All Superinterfaces:
Keyed

public interface StructureTemplate extends Keyed
A structure template read from a datapack .nbt file (data/<namespace>/structure/<path>.nbt).
Since:
0.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
     
    key()
     
    int
    Returns the size of the template along X, in blocks.
    int
    Returns the size of the template along Y, in blocks.
    int
    Returns the size of the template along Z, in blocks.
  • Method Details

    • key

      Key key()
      Specified by:
      key in interface Keyed
      Returns:
      the template identifier, e.g. terralith:spire/layer1
    • sizeX

      int sizeX()
      Returns the size of the template along X, in blocks.
      Returns:
      the size of the template along X, in blocks
      Since:
      0.1.0
    • sizeY

      int sizeY()
      Returns the size of the template along Y, in blocks.
      Returns:
      the size of the template along Y, in blocks
      Since:
      0.1.0
    • sizeZ

      int sizeZ()
      Returns the size of the template along Z, in blocks.
      Returns:
      the size of the template along Z, in blocks
      Since:
      0.1.0
    • blockCount

      int blockCount()
      Returns:
      the number of stored blocks, structure voids excluded
    • jigsawCount

      int jigsawCount()
      Returns:
      the number of jigsaw blocks the template exposes