JSM Developer API Documentation
    Preparing search index...

    Class Level

    This class provides functions to modify the level.

    Index

    Methods

    • This function retrieves the block at the specified coordinates.

      Parameters

      • x: number

        The X position of the block.

      • y: number

        The Y position of the block.

      • z: number

        The Z position of the block.

      Returns Block

      The block that was found at the coordinates. This function will never return null. If there is no block, it will return BuiltinBlocks.AIR

    • This function retrieves the depth (Y) of the level.

      Returns number

    • This function retrieves the height (Z) of the level.

      Returns number

    • This function retrieves the width (X) of the level.

      Returns number

    • Parameters

      • x: number
      • y: number
      • z: number
      • b: Block

      Returns void