Class BlockBreakEventSignal

Manages callbacks that are connected to when a block is broken.

Hierarchy

  • BlockBreakEventSignal

Constructors

Methods

Constructors

Methods

  • Parameters

    • callback: ((arg) => void)

    Returns ((arg) => void)

      • (arg): void
      • Parameters

        Returns void

        Remarks

        Adds a callback that will be called when a block is broken by a player.

    Remarks

    Adds a callback that will be called when a block is broken by a player.

  • Parameters

    • callback: ((arg) => void)

    Returns void

    Remarks

    Removes a callback from being called when an block is broken.

    Throws

    This function can throw errors.