Package org.quiltmc.qkl.wrapper.qsl.worlds
Functions
Link copied to clipboard
inline fun <E : Entity> E.teleport(targetWorld: ServerWorld, location: TeleportTarget): E?
Content copied to clipboard
Teleport this entity to the targetWorld at the given location. If location is null, the entity will not be teleported. If the entity in the teleported location is not the same type and is not null, an exception will be thrown. Otherwise, the teleported entity (or null) will be returned.
Link copied to clipboard
fun Entity.teleportGeneral(targetWorld: ServerWorld, location: TeleportTarget): Entity?
Content copied to clipboard
A class-safe version of teleport, where the type of the teleported entity is not specified and therefore may have changed when teleported.