void renderAll(Tessellator var1) {
    HashSet var2 = new HashSet();
    Iterator var3 = this.skies.iterator();

    while (var3.hasNext()) {
      SkyRenderer$Layer var4 = (SkyRenderer$Layer) var3.next();

      if (var4.prepare()) {
        var2.add(SkyRenderer$Layer.access$300(var4));
      }
    }

    HashSet var6 = new HashSet();
    var6.addAll(this.textures);
    var6.removeAll(var2);
    Iterator var7 = var6.iterator();

    while (var7.hasNext()) {
      String var5 = (String) var7.next();
      TexturePackAPI.unloadTexture(var5);
    }

    var7 = this.skies.iterator();

    while (var7.hasNext()) {
      SkyRenderer$Layer var8 = (SkyRenderer$Layer) var7.next();

      if (var8.brightness > 0.0F) {
        var8.render(var1);
        SkyRenderer$Layer.clearBlendingMethod();
      }
    }
  }
  void unloadTextures() {
    Iterator var1 = this.skies.iterator();

    while (var1.hasNext()) {
      SkyRenderer$Layer var2 = (SkyRenderer$Layer) var1.next();
      TexturePackAPI.unloadTexture(SkyRenderer$Layer.access$300(var2));
    }
  }
  private void loadCelestialObject(String var1, String var2) {
    String var3 = "/environment/sky" + this.worldType + "/" + var1;
    Properties var4 = TexturePackAPI.getProperties(var3 + ".properties");

    if (var4 != null) {
      var4.setProperty("fade", "false");
      var4.setProperty("rotate", "true");
      SkyRenderer$Layer var5 = new SkyRenderer$Layer(var3, var4);

      if (var5.valid) {
        this.objects.put(var2, var5);
      }
    }
  }