Class KillListener

java.lang.Object
studio.magemonkey.fabled.listener.FabledListener
studio.magemonkey.fabled.listener.KillListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class KillListener extends FabledListener
Tracks who kills what entities and awards experience accordingly
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    giveExp(org.bukkit.entity.LivingEntity entity, org.bukkit.entity.Player killer, int exp)
     
    void
    onKill(org.bukkit.event.entity.EntityDeathEvent event)
    Grants experience upon killing a monster and blocks experience when the monster originated from a blocked source.
    void
    Keeps track of killers when dealing physical damage
    void
    onSpawn(org.bukkit.event.entity.CreatureSpawnEvent event)
    Marks spawned entities with how they spawned to block experience from certain methods
    void
    Keeps track of killers when dealing damage with skills
    void
    Keeps track of killers when dealing true damage with skills

    Methods inherited from class studio.magemonkey.fabled.listener.FabledListener

    cleanup, init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KillListener

      public KillListener()
  • Method Details

    • giveExp

      public void giveExp(org.bukkit.entity.LivingEntity entity, org.bukkit.entity.Player killer, int exp)
    • onKill

      public void onKill(org.bukkit.event.entity.EntityDeathEvent event)
      Grants experience upon killing a monster and blocks experience when the monster originated from a blocked source.
      Parameters:
      event - event details
    • onSpawn

      public void onSpawn(org.bukkit.event.entity.CreatureSpawnEvent event)
      Marks spawned entities with how they spawned to block experience from certain methods
      Parameters:
      event - event details
    • onPhysical

      public void onPhysical(PhysicalDamageEvent event)
      Keeps track of killers when dealing physical damage
      Parameters:
      event - event details
    • onSpell

      public void onSpell(SkillDamageEvent event)
      Keeps track of killers when dealing damage with skills
      Parameters:
      event - event details
    • onTrue

      public void onTrue(TrueDamageEvent event)
      Keeps track of killers when dealing true damage with skills
      Parameters:
      event - event details