24 ::ll::TypedStorage<8, 40, ::PerlinSimplexNoise> mNoise;
25 ::ll::TypedStorage<4, 4, int> mTick;
26 ::ll::TypedStorage<4, 4, float> mOldRainLevel;
27 ::ll::TypedStorage<4, 4, float> mRainLevel;
28 ::ll::TypedStorage<4, 4, float> mTargetRainLevel;
29 ::ll::TypedStorage<4, 4, float> mOldLightningLevel;
30 ::ll::TypedStorage<4, 4, float> mLightningLevel;
31 ::ll::TypedStorage<4, 4, float> mTargetLightningLevel;
32 ::ll::TypedStorage<4, 4, float> mFogLevel;
33 ::ll::TypedStorage<4, 4, int> mSkyFlashTime;
34 ::ll::TypedStorage<8, 8, ::Dimension&> mDimension;
35 ::ll::TypedStorage<8, 8, ::IRandom&> mRandom;
40 Weather& operator=(Weather
const&);
41 Weather(Weather
const&);
47 virtual ~Weather() =
default;
49 virtual void levelEvent(::SharedTypes::Legacy::LevelEvent type,
::Vec3 const& data,
int) ;
57 MCAPI
void _stopInternal(
::Level& level);
61 MCAPI
bool canPlaceTopSnow(
65 bool checkSnowDepthLevel,
66 int* newHeightAfterPlacement
69 MCFOLD
float getFogLevel()
const;
71 MCAPI
float getLightningLevel(
float a)
const;
73 MCAPI
float getRainLevel(
float a)
const;
76 MCFOLD
int getSkyFlashTime()
const;
79 MCAPI
bool isLightning()
const;
83 MCAPI
bool isRaining()
const;
89 MCAPI
void serverTick();
92 MCAPI
void setFogLevel(
float fogLevel);
95 MCFOLD
void setSkyFlashTime(
int flash);
97 MCAPI
void setTargetLightningLevel(
float lightningLevel);
99 MCFOLD
void setTargetRainLevel(
float rainLevel);
104 tryToPlaceTopSnow(
::BlockSource& region,
::BlockPos const& pos,
bool fromFallingSnow,
bool fillLowerNeighborsFirst);
110 MCFOLD
static int calcLightningCycleTime(
::IRandom& random);
112 MCFOLD
static int calcRainCycleTime(
::IRandom& random);
114 MCAPI
static int calcRainDuration(
::IRandom& random);
128 MCAPI
void $levelEvent(::SharedTypes::Legacy::LevelEvent type,
::Vec3 const& data,
int);