1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-16 18:31:53 +01:00

Added Creature.getTarget

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot 2011-02-09 13:44:46 +00:00
parent 64354406fc
commit 3b73bf1447

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;