Godleydemon

onEntityDamage

Feb 4th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1.     public void onEntityDamage(EntityDamageEvent event) {
  2.         Entity entity = event.getEntity();
  3.         int id = entity.getEntityId();
  4.         if (zombieIds.contains(id+""))
  5.             {
  6.                 if (event instanceof EntityDamageByEntityEvent) {
  7.                     EntityDamageByEntityEvent dbeEvent = (EntityDamageByEntityEvent) event;
  8.                     if (dbeEvent.getDamager() == null) {
  9.                         return;
  10.                     }else{
  11.  
  12.                     }
  13.             }
  14.  
  15.  
  16.             }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment