Class: SimulationState
Responsible for querying and modifying various properties of the simulation.
Constructors
new SimulationState()
private
new SimulationState():SimulationState
Returns
Methods
isPaused()
isPaused():
boolean
Returns
boolean
Remarks
Returns true
if mob simulation is paused.
setPaused()
setPaused(
isPaused
):void
Parameters
Parameter | Type |
---|---|
isPaused | boolean |
Returns
void
Remarks
Sets the state of mob simulation. If set to true
, mobs
are paused.
This function can't be called in read-only mode.