@minecraft/server
    Preparing search index...

    Class ItemUseBeforeEventSignalBeta

    Manages callbacks that fire before an item is used.

    Index

    Methods

    • Beta

      Parameters

      Returns (arg0: ItemUseBeforeEvent) => void

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

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

      This function can be called in early-execution mode.

    • Beta

      Parameters

      Returns void

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

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

      This function can be called in early-execution mode.