MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getWeather

Method getWeather

src/main/java/net/optifine/config/Weather.java:11–24  ·  view source on GitHub ↗
(World world, float partialTicks)

Source from the content-addressed store, hash-verified

9 THUNDER;
10
11 public static Weather getWeather(World world, float partialTicks)
12 {
13 float f = world.getThunderStrength(partialTicks);
14
15 if (f > 0.5F)
16 {
17 return THUNDER;
18 }
19 else
20 {
21 float f1 = world.getRainStrength(partialTicks);
22 return f1 > 0.5F ? RAIN : CLEAR;
23 }
24 }
25}

Callers 1

matchesMethod · 0.95

Calls 2

getThunderStrengthMethod · 0.80
getRainStrengthMethod · 0.80

Tested by

no test coverage detected