/** * Returns the current target of the mob * * @return OEntity */ public OEntity getTarget() { if (getEntity() instanceof OEntityGhast) { OEntityGhast var1 = (OEntityGhast) getEntity(); return var1.getTarget(); } return ((OEntityCreature) getEntity()).d; }
/** * Sets the mobs target * * @param target the entity to target */ public void setTarget(OEntity target) { if (getEntity() instanceof OEntityGhast) { OEntityGhast var1 = (OEntityGhast) getEntity(); var1.setTarget(target); return; } ((OEntityCreature) getEntity()).d = target; }