Interface StructureBlockLibApi

All Known Implementing Classes:
StructureBlockLib

public interface StructureBlockLibApi
Root Api entry.
  • Field Details

  • Method Details

    • getStructureBlockAt

      <T extends StructureBlock> T getStructureBlockAt(org.bukkit.Location location, org.bukkit.plugin.Plugin plugin)
      Gets or creates a StructureBlock at the given location. This instance hides all structure modes and can be access via simple type casting. StructureBlockSave save = (StructureBlockSave) structureBlock; etc.
      Type Parameters:
      T - Type extending structure block.
      Parameters:
      location - Location of the block in the world.
      plugin - Plugin instance using this API.
      Returns:
      A new instance of the StructureBlock.
    • saveStructure

      StructureSaver saveStructure(org.bukkit.plugin.Plugin plugin)
      Creates a new instance of the StructureSaver for saving structures from a minecraft world into a target.
      Parameters:
      plugin - Plugin instance using this API.
      Returns:
      A new instance of the StructureSaver.
    • loadStructure

      StructureLoader loadStructure(org.bukkit.plugin.Plugin plugin)
      Creates a new instance of the StructureLoader for loading structures from a source into the minecraft world.
      Parameters:
      plugin - Plugin instance using this API.
      Returns:
      A new instance of the StructureLoader.