File tree Expand file tree Collapse file tree
src/main/kotlin/org/polyfrost/polyweather/client Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11package org.polyfrost.polyweather.client
22
3- import dev.deftu.omnicore.api.client.world
43import dev.deftu.omnicore.api.math.OmniMath
54import org.polyfrost.polyweather.client.realtime.RealWeatherHandler
65import org.polyfrost.polyweather.util.WeatherType
76
87object ClientWeatherManager {
9- private val weatherStorage: WeatherStorage ?
10- get() {
11- val world = world ? : return null
12- return world as ? WeatherStorage
13- ? : throw IllegalStateException (" World does not implement WeatherStorage" )
14- }
15-
168 @JvmStatic val isRainy: Boolean get() = if (PolyWeatherConfig .isIrlWeather) RealWeatherHandler .isRainy else PolyWeatherConfig .weatherType != WeatherType .CLEAR
179 @JvmStatic val isStormy: Boolean get() = if (PolyWeatherConfig .isIrlWeather) RealWeatherHandler .isStormy else PolyWeatherConfig .weatherType == WeatherType .STORM
1810 @JvmStatic val isSnowy: Boolean get() = if (PolyWeatherConfig .isIrlWeather) RealWeatherHandler .isSnowy else PolyWeatherConfig .weatherType == WeatherType .SNOW
1911
20- @JvmStatic val isActuallyRaining: Boolean get() = weatherStorage?.`polyweather$isRaining`() == true
21-
2212 private val rainStrength: Float get() = if (PolyWeatherConfig .isIrlWeather) RealWeatherHandler .rainStrength else PolyWeatherConfig .rainStrength
2313 private val snowStrength: Float get() = if (PolyWeatherConfig .isIrlWeather) RealWeatherHandler .rainStrength else PolyWeatherConfig .snowStrength
2414 private val stormStrength: Float get() = if (PolyWeatherConfig .isIrlWeather) RealWeatherHandler .thunderStrength else PolyWeatherConfig .thunderStrength
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments