Interface IAbilityEvent

    • Method Detail

      • getEntity

        IEntityLivingBase getEntity()
        Get the entity executing the ability (NPC or Player).
        Returns:
        the entity executing the ability
      • getPlayer

        IPlayer getPlayer()
        Get the player executing the ability, or null if the caster is an NPC.
        Returns:
        the player executing the ability, or null if NPC
      • isNPC

        boolean isNPC()
        Whether the entity executing the ability is an NPC.
        Returns:
        true if the executor is an NPC
      • getAbility

        IAbility getAbility()
        Get the ability involved in this event.
        Returns:
        the ability being executed
      • getTarget

        IEntityLivingBase getTarget()
        Get the target of the ability, or null if no target.
        Returns:
        the current target entity