Interface StructureBlockLibApi
- All Known Implementing Classes:
StructureBlockLib
public interface StructureBlockLibApi
Root Api entry.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructureBlockLibAccesses theStructureBlockLibApi. -
Method Summary
Modifier and TypeMethodDescription<T extends StructureBlock>
TgetStructureBlockAt(org.bukkit.Location location, org.bukkit.plugin.Plugin plugin) Gets or creates aStructureBlockat the given location.loadStructure(org.bukkit.plugin.Plugin plugin) Creates a new instance of theStructureLoaderfor loading structures from a source into the minecraft world.saveStructure(org.bukkit.plugin.Plugin plugin) Creates a new instance of theStructureSaverfor saving structures from a minecraft world into a target.
-
Field Details
-
INSTANCE
Accesses theStructureBlockLibApi.
-
-
Method Details
-
getStructureBlockAt
<T extends StructureBlock> T getStructureBlockAt(org.bukkit.Location location, org.bukkit.plugin.Plugin plugin) Gets or creates aStructureBlockat 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
Creates a new instance of theStructureSaverfor saving structures from a minecraft world into a target.- Parameters:
plugin- Plugin instance using this API.- Returns:
- A new instance of the
StructureSaver.
-
loadStructure
Creates a new instance of theStructureLoaderfor loading structures from a source into the minecraft world.- Parameters:
plugin- Plugin instance using this API.- Returns:
- A new instance of the
StructureLoader.
-