Added Creature.getTarget
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
64354406fc
commit
3b73bf1447
1 changed files with 8 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue