Interface INpcEvent.DiedEvent

    • Method Detail

      • getSource

        IEntity getSource()
        Returns:
        the entity that killed this NPC, or null.
      • getDamageSource

        IDamageSource getDamageSource()
        Returns:
        the damage source details.
      • getType

        String getType()
        Returns:
        the damage type string.
      • setDroppedItems

        void setDroppedItems​(IItemStack[] droppedItems)
        Parameters:
        droppedItems - the items to drop on death.
      • getDroppedItems

        IItemStack[] getDroppedItems()
        Returns:
        the items dropped on death.
      • setExpDropped

        void setExpDropped​(int expDropped)
        Parameters:
        expDropped - the experience to drop on death.
      • getExpDropped

        int getExpDropped()
        Returns:
        the experience dropped on death.