Esempio n. 1
0
 public static void registerSky(
     GenericWorldProvider provider, final DimensionInformation information) {
   provider.setSkyRenderer(
       new IRenderHandler() {
         @Override
         public void render(float partialTicks, WorldClient world, Minecraft mc) {
           SkyRenderer.renderSky(partialTicks, information);
         }
       });
 }
Esempio n. 2
0
 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) {}
       });
 }
Esempio n. 3
0
 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) {}
       });
 }