I have a mod that makes it snow when an event is triggered. I used to make it snow with this in 1.8.9:
Biome b = BiomeRegistry.biomeGlistre;
WorldServer worldServer = FMLCommonHandler.instance().getMinecraftServerInstance().getServer().worldServerForDimension(Defaults.DIM_ID.FREON);
WorldInfo worldinfo = worldServer.getWorldInfo();
//first parameter is temp .2F and rain looks like snow, second parameter is rainfall 0F none .5F is normal)
b.setTemperatureRainfall(0.0F, 1.0F);//// No longer works in 1.10.2!
Is there a replacement method for #setTemperatureRainfall or is there another way to do this? Do I have to extend IWeatherRenderer now or some class for weather?
Reposting this in proper forum:
I have a mod that makes it snow when an event is triggered. I used to make it snow with this in 1.8.9:
Biome b = BiomeRegistry.biomeGlistre;
WorldServer worldServer = FMLCommonHandler.instance().getMinecraftServerInstance().getServer().worldServerForDimension(Defaults.DIM_ID.FREON);
WorldInfo worldinfo = worldServer.getWorldInfo();
//first parameter is temp .2F and rain looks like snow, second parameter is rainfall 0F none .5F is normal)
b.setTemperatureRainfall(0.0F, 1.0F);//// No longer works in 1.10.2!
Is there a replacement method for #setTemperatureRainfall or is there another way to do this? Do I have to extend IWeatherRenderer now or some class for weather?