on Process Entity
abstract fun onProcessEntity(onStructurePlace: (StructureEntity<E, L>) -> Boolean): StructureLoaderAbstract<L, V, B, E, W>
Content copied to clipboard
Attaches a new function to the structure processor which is called for each entity being placed in the world. If true, the entity is getting placed in the world. If false, the entity 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 entity being placed.