summaryrefslogtreecommitdiffstats
path: root/src/Blocks/WorldInterface.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-14 11:14:04 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-06-14 11:14:04 +0200
commita70b8298b6ada8abead9ef2b292531407225c2d1 (patch)
tree605095d3d0a6e6a291644af0b7864a126e52ceb8 /src/Blocks/WorldInterface.h
parentMerge remote-tracking branch 'origin/master' into portals (diff)
downloadcuberite-a70b8298b6ada8abead9ef2b292531407225c2d1.tar
cuberite-a70b8298b6ada8abead9ef2b292531407225c2d1.tar.gz
cuberite-a70b8298b6ada8abead9ef2b292531407225c2d1.tar.bz2
cuberite-a70b8298b6ada8abead9ef2b292531407225c2d1.tar.lz
cuberite-a70b8298b6ada8abead9ef2b292531407225c2d1.tar.xz
cuberite-a70b8298b6ada8abead9ef2b292531407225c2d1.tar.zst
cuberite-a70b8298b6ada8abead9ef2b292531407225c2d1.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/WorldInterface.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Blocks/WorldInterface.h b/src/Blocks/WorldInterface.h
index 7df82197e..e5638c16e 100644
--- a/src/Blocks/WorldInterface.h
+++ b/src/Blocks/WorldInterface.h
@@ -37,9 +37,9 @@ public:
virtual void SetTimeOfDay(Int64 a_TimeOfDay) = 0;
- /** Returns true if the current weather has any precipitation - rain or storm
- Does not check if biome has no downfall, use cChunk::GetBiomeAt(RelX, RelZ) for that
- */
- virtual bool IsWeatherWet(void) const = 0;
+ /** Returns true if it is raining, stormy or snowing at the specified location. This takes into account biomes. */
+ virtual bool IsWeatherWetAt(int a_BlockX, int a_BlockZ) = 0;
+ /** Returns the world height at the specified coords; waits for the chunk to get loaded / generated */
+ virtual int GetHeight(int a_BlockX, int a_BlockZ) = 0;
};