private boolean f() {
    for (int var1 = 0; var1 < 8; ++var1) {
      for (int var2 = 0; var2 < 8; ++var2) {
        Chunk var3 = this.d.getChunkAt(var1, var2);
        Iterator var4 = var3.r().values().iterator();

        while (var4.hasNext()) {
          TileEntity var5 = (TileEntity) var4.next();
          if (var5 instanceof TileEntityEnderPortal) {
            return true;
          }
        }
      }
    }

    return false;
  }
  private class_anp.class_b_in_class_anp g() {
    for (int var1 = 0; var1 < 8; ++var1) {
      for (int var2 = 0; var2 < 8; ++var2) {
        Chunk var3 = this.d.getChunkAt(var1, var2);
        Iterator var4 = var3.r().values().iterator();

        while (var4.hasNext()) {
          TileEntity var5 = (TileEntity) var4.next();
          if (var5 instanceof TileEntityEnderPortal) {
            class_anp.class_b_in_class_anp var6 = this.f.a(this.d, var5.getPosition());
            if (var6 != null) {
              return var6;
            }
          }
        }
      }
    }

    return null;
  }