示例#1
0
文件: Mob.java 项目: spenk/CanaryMod
  /**
   * 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;
  }
示例#2
0
文件: Mob.java 项目: spenk/CanaryMod
  /**
   * 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;
  }