getStructureBlockAt

abstract fun <T : StructureBlock?> getStructureBlockAt(location: Location, plugin: Plugin): T

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.

Return

A new instance of the StructureBlock.

Parameters

location

Location of the block in the world.

plugin

Plugin instance using this API.

<T>

Type extending structure block.