@minecraft/server
    Preparing search index...

    Class ItemUseOnBeforeEventSignal

    This class is deprecated and will be removed in 2.0.0.

    Manages callbacks that fire before an item being used on a block event.

    Index

    Methods

    • Parameters

      Returns (arg0: ItemUseOnBeforeEvent) => void

      This function is deprecated and will be removed in 2.0.0.

      Adds a callback that will be called before an item is used on a block.

      This function can't be called in read-only mode.

      This function can be called in early-execution mode.

    • Parameters

      Returns void

      This function is deprecated and will be removed in 2.0.0.

      Removes a callback from being called before an item is used on a block.

      This function can't be called in read-only mode.

      This function can be called in early-execution mode.