spawnEntity

abstract fun spawnEntity(location: Location): Optional<Entity>

Tries to spawn an entity from the stored nbt data at the given location.

Return

A valid entity or empty optional.

Parameters

location

Target Location.