(World world, float partialTicks)
| 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 | } |
no test coverage detected