Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
EntityTargetLivingEntityEvent.java
Go to the documentation of this file.
1 package org.bukkit.event.entity;
2 
3 import org.bukkit.entity.Entity;
4 import org.bukkit.entity.LivingEntity;
5 
10  public EntityTargetLivingEntityEvent(final Entity entity, final LivingEntity target, final TargetReason reason) {
11  super(entity, target, reason);
12  }
13 
15  return (LivingEntity) super.getTarget();
16  }
17 
27  public void setTarget(Entity target) {
28  if (target == null || target instanceof LivingEntity) {
29  super.setTarget(target);
30  }
31  }
32 }