on Process Block
abstract fun onProcessBlock(onStructurePlace: (StructurePlacePart<B, W>) -> Boolean): StructureLoaderAbstract<L, V, B, E, W>
Content copied to clipboard
Attaches a new function to the structure processor which is called for each block being placed in the world. If true, the block is getting placed in the world. If false, the block is not getting placed. Multiple processor can be attached to a single structure load (e.g. executed in the order they are added). If one processor returns false, subsequent processor are no longer being called.
Return
This instance.
Parameters
on Structure Place
A function being called for each block being placed.