Added Creature.getTarget
This commit is contained in:
parent
e3011157b1
commit
7401ee54a3
@ -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
|
@Override
|
||||||
public EntityCreature getHandle() {
|
public EntityCreature getHandle() {
|
||||||
return entity;
|
return entity;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user