use of net.minecraftforge.client.IRenderHandler in project RFToolsDimensions by McJty.
the class SkyRenderer method registerSkybox.
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) {
}
});
}
use of net.minecraftforge.client.IRenderHandler in project RFToolsDimensions by McJty.
the class SkyRenderer method registerNoSky.
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) {
}
});
}
use of net.minecraftforge.client.IRenderHandler in project RFToolsDimensions by McJty.
the class SkyRenderer method registerEnderSky.
public static void registerEnderSky(GenericWorldProvider provider) {
provider.setSkyRenderer(new IRenderHandler() {
@Override
public void render(float partialTicks, WorldClient world, Minecraft mc) {
SkyRenderer.renderEnderSky();
}
});
provider.setCloudRenderer(new IRenderHandler() {
@Override
public void render(float partialTicks, WorldClient world, Minecraft mc) {
}
});
}
Aggregations