Class Dimension

A class that represents a particular dimension (e.g., The End) within a world.

Hierarchy

  • Dimension

Constructors

Properties

Methods

Constructors

Properties

id: string

Identifier of the dimension.

Throws

This property can throw when used.

Methods

  • Parameters

    • commandString: string

      Command to run. Note that command strings should not start with slash.

    Returns Promise<CommandResult>

    For commands that return data, returns a CommandResult with an indicator of command results.

    Remarks

    Runs a particular command asynchronously from the context of the broader dimension. Note that there is a maximum queue of 128 asynchronous commands that can be run in a given tick.

    Throws

    This function can throw errors.