Update #48 - Added some features from OptiFine

This commit is contained in:
lax1dude
2025-01-24 18:39:36 -08:00
parent 1f0d593a8c
commit e83a912e38
1056 changed files with 17706 additions and 898 deletions

View File

@ -0,0 +1,18 @@
package net.optifine.config;
import net.minecraft.world.World;
public enum Weather {
CLEAR, RAIN, THUNDER;
public static Weather getWeather(World world, float partialTicks) {
float f = world.getThunderStrength(partialTicks);
if (f > 0.5F) {
return THUNDER;
} else {
float f1 = world.getRainStrength(partialTicks);
return f1 > 0.5F ? RAIN : CLEAR;
}
}
}