clearEntities

fun clearEntities(worldId: Int)

Clears all the entities for the provided worldId. This function is only intended to be used together with the net.rsprot.protocol.game.outgoing.worldentity.ClearEntities packet. This packet should only be called before WorldEntityProtocol.update has been called, otherwise problems may arise.

Parameters

worldId

the world to clear, either ROOT_WORLD or a value from 0..<2048 If the world is ROOT_WORLD, all worlds will be cleared. If the world is in range of 0..<2048, only that specific world will be cleared.