mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-09-18 21:54:50 +00:00
Added Creature.getTarget
This commit is contained in:
parent
e3011157b1
commit
7401ee54a3
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
|
||||
public EntityCreature getHandle() {
|
||||
return entity;
|
||||
|
|
Loading…
Add table
Reference in a new issue