createEntity

fun createEntity(location: Location?): Entity

Builds (but does not add to the world) an entity of this type at location — null falls back to the first world's origin. Use spawnEntity to actually place it.


fun createEntity(location: Location?, additionalArgs: List<String>): Entity

createEntity variant that also applies additionalArgs to the new entity.