Jump to content

How do I get the current weather data?


Nebula

Recommended Posts

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 by Nebula
Link to comment
Share on other sites

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 by Asilar
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...