Interface IItemEvent.InteractEvent

  • All Superinterfaces:
    ICustomNPCsEvent, IItemEvent
    Enclosing interface:
    IItemEvent

    public static interface IItemEvent.InteractEvent
    extends IItemEvent
    Fired when the item is used to interact with an entity. Cancelable.
    Hook Name:
    interact
    • Method Detail

      • getType

        int getType()
        Returns:
        the interaction type.
      • getTarget

        IEntity getTarget()
        Returns:
        the target entity.
      • getPlayer

        IPlayer getPlayer()
        Returns:
        the player performing the interaction.