RattlePlatform

abstract class RattlePlatform(val rattle: RattleHook)

A container for a single server's physics state, providing access to world physics.

Constructors

Link copied to clipboard
constructor(rattle: RattleHook)

Types

Link copied to clipboard
data class OnPreStep(val dt: Double)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val worlds: Iterable<World>

Functions

Link copied to clipboard
abstract fun asPlayer(sender: CommandSource): RattlePlayer?
Link copied to clipboard
fun destroy()
Link copied to clipboard
fun hasPhysics(world: World): Boolean
Link copied to clipboard
abstract fun key(world: World): Key
Link copied to clipboard
fun load()
Link copied to clipboard
open fun onTick()
Link copied to clipboard
abstract fun physicsOrCreate(world: World): Sync<out WorldPhysics>
Link copied to clipboard
abstract fun physicsOrNull(world: World): Sync<out WorldPhysics>?
Link copied to clipboard
abstract fun setPlayerDraw(player: RattlePlayer, draw: RattlePlayer.Draw?)