Nebula Posted November 20, 2020 Share Posted November 20, 2020 (edited) Help me please. How do I get the current weather data? - The sky is clear. - Partly cloudy. - Overcast clouds. - Rain. - Snow. - Fog. - Hail (if there is one, I have not seen it in the game) - Temperature. - Atmospheric pressure (if any) Edited November 20, 2020 by Nebula Link to comment Share on other sites More sharing options...
Asilar Posted November 22, 2020 Share Posted November 22, 2020 (edited) Hi, I think what you are looking for is hidden in java code. Digging a little in the code, I found stuff in : zombie/iso/weather. For example, il zombie/iso/weather/ClimateManager.class I found this : (I don't know how to add a hidden/spoiler thing, sorry...) public float getAirMass() { return this.airMass; } public float getAirMassDaily() { return this.airMassDaily; } public float getAirMassTemperature() { return this.airMassTemperature; } public float getDayLightStrength() { return this.dayLightStrength.finalValue; } public float getNightStrength() { return this.nightStrength.finalValue; } public float getDayMeanTemperature() { return this.currentDay.season.getDayMeanTemperature(); } public float getTemperature() { return this.temperature.finalValue; } public float getBaseTemperature() { return this.baseTemperature; } public float getSnowStrength() { return this.snowStrength; } public boolean getPrecipitationIsSnow() { return this.precipitationIsSnow.finalValue; } public float getPrecipitationIntensity() { return this.precipitationIntensity.finalValue; } public float getFogIntensity() { return this.fogIntensity.finalValue; } public float getWindIntensity() { return this.windIntensity.finalValue; } public float getWindAngleIntensity() { return this.windAngleIntensity.finalValue; } public float getWindPower() { return this.windPower; } public float getWindspeedKph() { return this.windPower * 120.0F; } public float getCloudIntensity() { return this.cloudIntensity.finalValue; } public float getAmbient() { return this.ambient.finalValue; } public float getViewDistance() { return this.viewDistance.finalValue; } public boolean isRaining() { return (getPrecipitationIntensity() > 0.0F && !getPrecipitationIsSnow()); } public float getRainIntensity() { return isRaining() ? getPrecipitationIntensity() : 0.0F; } Hope it will help ! Edited November 22, 2020 by Asilar Nebula 1 Link to comment Share on other sites More sharing options...
Nebula Posted November 22, 2020 Author Share Posted November 22, 2020 Thank you. I'll try to use that. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now