summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-03-03 20:52:08 +0100
committerMattes D <github@xoft.cz>2014-03-03 20:52:08 +0100
commit71ae689eb71ce5ced58b19460a8d8137722ce357 (patch)
treeacbb99403541d778513d4e2dcfd243a19c368bc9 /src/World.h
parentMerge pull request #748 from xdot/master (diff)
parentAdd cancelling to WeatherChanging event. (diff)
downloadcuberite-71ae689eb71ce5ced58b19460a8d8137722ce357.tar
cuberite-71ae689eb71ce5ced58b19460a8d8137722ce357.tar.gz
cuberite-71ae689eb71ce5ced58b19460a8d8137722ce357.tar.bz2
cuberite-71ae689eb71ce5ced58b19460a8d8137722ce357.tar.lz
cuberite-71ae689eb71ce5ced58b19460a8d8137722ce357.tar.xz
cuberite-71ae689eb71ce5ced58b19460a8d8137722ce357.tar.zst
cuberite-71ae689eb71ce5ced58b19460a8d8137722ce357.zip
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/World.h b/src/World.h
index 4b74f7aba..27f1482e5 100644
--- a/src/World.h
+++ b/src/World.h
@@ -139,6 +139,9 @@ public:
BroadcastTimeUpdate();
}
+ /** Returns the default weather interval for the specific weather type */
+ int GetDefaultWeatherInterval(eWeather a_Weather);
+
/** Returns the current game mode. Partly OBSOLETE, you should use IsGameModeXXX() functions wherever applicable */
eGameMode GetGameMode(void) const { return m_GameMode; }
@@ -342,6 +345,12 @@ public:
/** Sets the command block command. Returns true if command changed. */
bool SetCommandBlockCommand(int a_BlockX, int a_BlockY, int a_BlockZ, const AString & a_Command); // tolua_export
+ /** Is the trapdoor open? Returns false if there is no trapdoor at the specified coords. */
+ bool IsTrapdoorOpen(int a_BlockX, int a_BlockY, int a_BlockZ); // tolua_export
+
+ /** Set the state of a trapdoor. Returns true if the trapdoor was update, false if there was no trapdoor at those coords. */
+ bool SetTrapdoorOpen(int a_BlockX, int a_BlockY, int a_BlockZ, bool a_Open); // tolua_export
+
/** Regenerate the given chunk: */
void RegenerateChunk(int a_ChunkX, int a_ChunkZ); // tolua_export