public static void registerCloudRenderer( final GenericWorldProvider provider, final DimensionInformation information) { provider.setCloudRenderer( new IRenderHandler() { @Override public void render(float partialTicks, WorldClient world, Minecraft mc) { renderClouds(provider, information, partialTicks); } }); }
public static void registerNoSky(GenericWorldProvider provider) { provider.setSkyRenderer( new IRenderHandler() { @Override public void render(float partialTicks, WorldClient world, Minecraft mc) {} }); provider.setCloudRenderer( new IRenderHandler() { @Override public void render(float partialTicks, WorldClient world, Minecraft mc) {} }); }
public static void registerSkybox(GenericWorldProvider provider, final SkyType skyType) { provider.setSkyRenderer( new IRenderHandler() { @Override public void render(float partialTicks, WorldClient world, Minecraft mc) { ResourceLocation sky; ResourceLocation sky2 = null; int type = SKYTYPE_DARKTOP; switch (skyType) { case SKY_INFERNO: sky = locationPlasmaSkyPng; type = SKYTYPE_DARKTOP; break; case SKY_STARS1: sky = locationStars1; sky2 = locationStars1a; type = SKYTYPE_ALTERNATING; break; case SKY_STARS2: sky = locationStars2; type = SKYTYPE_ALL; break; case SKY_STARS3: sky = locationStars3; sky2 = locationStars3a; type = SKYTYPE_ALLHORIZONTAL; break; default: return; } SkyRenderer.renderSkyTexture(sky, sky2, type); } }); provider.setCloudRenderer( new IRenderHandler() { @Override public void render(float partialTicks, WorldClient world, Minecraft mc) {} }); }