@minecraft/server
    Preparing search index...

    Class PlayerItemAttackEntityBeforeEventSignalBeta

    Manages callbacks that run before a player attacks an entity through an item interaction.

    Index

    Methods

    • Beta

      Parameters

      Returns (arg0: PlayerItemAttackEntityBeforeEvent) => void

      Closure that is called with restricted-execution privilege.

      Adds a callback that runs before a player attacks an entity through an item interaction.

      no-restricted-execution - This function can't be called in restricted-execution mode.

      early-execution-allowed - This function can be called in early-execution mode.

    • Beta

      Parameters

      Returns void

      Removes a callback from this event signal.

      no-restricted-execution - This function can't be called in restricted-execution mode.

      early-execution-allowed - This function can be called in early-execution mode.