Jump to content
Sign in to follow this  
Nebula

How do I get the current weather data?

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...