JSPrismarine
    Preparing search index...

    Implements

    Index

    Constructors

    Methods

    • Returns a block instance in the given world position.

      Parameters

      • x: number

        block x

      • y: number

        block y

      • z: number

        block z

      • Optionallayer: number = 0

        block storage layer (0 for blocks, 1 for liquids)

      Returns Promise<Block>

    • Returns the chunk in the specifies x and z, if the chunk doesn't exists it is generated.

      Parameters

      • cx: number
      • cz: number

      Returns Promise<Chunk>

    • Loads a chunk in a given x and z and returns its.

      Parameters

      • x: number

        x coordinate.

      • z: number

        z coordinate.

      • Optional_ignoreWarn: boolean

      Returns Promise<Chunk>

    • Sends a world event packet to all the viewers in the position chunk.

      Parameters

      • position: null | Vector3

        world position.

      • event: WorldEvent

        event identifier.

      • data: number

        event data.

      Returns Promise<void>

    Lifecycle