How to get a sub Event?

Discussion in 'Plugin Development' started by Smex, Oct 24, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Smex

    How would I listen to the event : EntityDamageByEntityEvent?
    There doesnt seem to be an Event.Type.**** for this, I
    guess you have to access it from ENTITY_DAMAGE but how?
     
  2. Code:java
    1.  
    2. public void onEntityDamage(EntityDamageEvent event) {
    3. if (event instanceof EntityDamageByEntityEvent) {
    4. EntityDamageByEntityEvent e = (EntityDamageByEntityEvent) event;
    5. }
    6. }
    7.  
     
    Smex likes this.
  3. Offline

    Smex

    Thank you. ;)
     
    tips48 likes this.
Thread Status:
Not open for further replies.

Share This Page