Added Creature.getTarget

This commit is contained in:
Dinnerbone 2011-02-09 13:44:46 +00:00
parent e3011157b1
commit 7401ee54a3

View file

@ -24,6 +24,14 @@ public class CraftCreature extends CraftLivingEntity implements Creature{
}
}
public CraftLivingEntity getTarget() {
if (entity.d == null) {
return null;
} else {
return (CraftLivingEntity)entity.d.getBukkitEntity();
}
}
@Override
public EntityCreature getHandle() {
return entity;