Ejemplo n.º 1
0
  /**
   * 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;
  }
Ejemplo n.º 2
0
  /**
   * 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;
  }