void renderAll(Tessellator tessellator) {
HashSet texturesNeeded = new HashSet();
Iterator texturesToUnload = this.skies.iterator();
while (texturesToUnload.hasNext()) {
SkyRenderer$Layer i$ = (SkyRenderer$Layer)texturesToUnload.next();
if (i$.prepare()) {
texturesNeeded.add(SkyRenderer$Layer.access$300(i$));
}
}
HashSet texturesToUnload1 = new HashSet();
texturesToUnload1.addAll(this.textures);
texturesToUnload1.removeAll(texturesNeeded);
Iterator i$1 = texturesToUnload1.iterator();
while (i$1.hasNext()) {
ResourceLocation layer = (ResourceLocation)i$1.next();
TexturePackAPI.unloadTexture(layer);
}
i$1 = this.skies.iterator();
while (i$1.hasNext()) {
SkyRenderer$Layer layer1 = (SkyRenderer$Layer)i$1.next();
if (layer1.brightness > 0.0F) {
layer1.render(tessellator);
SkyRenderer$Layer.clearBlendingMethod();
}
}
}