teleport

abstract fun teleport(position: Position)

Teleports this entity to the given position.

Parameters

position

the position to teleport to


open fun teleport(entity: Entity)

Teleports this entity to the given other entity.

Parameters

entity

the entity to teleport to