Skip to main content

Class: SimulationState

Responsible for querying and modifying various properties of the simulation.

Constructors

new SimulationState()

private new SimulationState(): SimulationState

Returns

SimulationState

Methods

isPaused()

isPaused(): boolean

Returns

boolean

Remarks

Returns true if mob simulation is paused.


setPaused()

setPaused(isPaused): void

Parameters

ParameterType
isPausedboolean

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.

Throws

This function can throw errors.