Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 05:20:07 +01:00
Added Creature.getTarget
Dieser Commit ist enthalten in:
Ursprung
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;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren