Interface IItemEvent.StopUsingItem

  • All Superinterfaces:
    ICustomNPCsEvent, IItemEvent
    Enclosing interface:
    IItemEvent

    public static interface IItemEvent.StopUsingItem
    extends IItemEvent
    Fired when the player stops using the item before completion.
    Hook Name:
    stopItem
    • Method Detail

      • getPlayer

        IPlayer getPlayer()
        Returns:
        the player who stopped using the item.
      • getDuration

        int getDuration()
        Returns:
        the remaining use duration in ticks.