/** * 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; }