spawnEntity

abstract fun <T : Entity> spawnEntity(type: EntityType<T>, position: Position): T?

Spawns an entity with the given type in this world at the given position.

Parameters

T

the entity type

type

the type of the entity

position

the position to spawn the entity at