Interface IChainEvent

    • Method Detail

      • getEntity

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

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

        ICustomNpc<?> getNpc()
        Get the NPC executing the chain, or null if the caster is a player.
        Returns:
        the NPC executing the chain, or null if player
      • isNPC

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

        IChainedAbility getChain()
        Get the chained ability being executed.
        Returns:
        the chained ability being executed
      • getTarget

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

        int getEntryIndex()
        Get the current entry index within the chain (0-based).
        Returns:
        the current entry index in the chain