Module RandomTrainSimWorld2.main
Class WeatherReader
java.lang.Object
com.github.freddyyj.randomtrainsimworld.config.WeatherReader
public class WeatherReader extends Object
Reader class of weathers JSON file
This class reads weathers.json in jar. This class has only static class.
- Author:
- FreddyYJ_
-
Method Summary
Modifier and Type Method Description static List<String>
getWeathers()
Get list of all weathersstatic void
reload()
Reload weathers.json
-
Method Details
-
reload
Reload weathers.json- Throws:
IOException
-
getWeathers
Get list of all weathers- Returns:
- weather list
-