diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2015-06-13 14:57:51 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2015-06-28 17:05:44 +0200 |
commit | e5cfe0cd96a67b493b91e7576ec0341452c23855 (patch) | |
tree | 458160137feb67c73766b1249bc8d686c2c29e3a /src/Blocks/WorldInterface.h | |
parent | use atomic for state, to avoid torn reads (diff) | |
download | cuberite-e5cfe0cd96a67b493b91e7576ec0341452c23855.tar cuberite-e5cfe0cd96a67b493b91e7576ec0341452c23855.tar.gz cuberite-e5cfe0cd96a67b493b91e7576ec0341452c23855.tar.bz2 cuberite-e5cfe0cd96a67b493b91e7576ec0341452c23855.tar.lz cuberite-e5cfe0cd96a67b493b91e7576ec0341452c23855.tar.xz cuberite-e5cfe0cd96a67b493b91e7576ec0341452c23855.tar.zst cuberite-e5cfe0cd96a67b493b91e7576ec0341452c23855.zip |
Diffstat (limited to 'src/Blocks/WorldInterface.h')
-rw-r--r-- | src/Blocks/WorldInterface.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Blocks/WorldInterface.h b/src/Blocks/WorldInterface.h index 44c118195..826df7034 100644 --- a/src/Blocks/WorldInterface.h +++ b/src/Blocks/WorldInterface.h @@ -55,6 +55,18 @@ public: /** 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 or sets the minumim or maximum netherportal width */ + virtual int GetMinNetherPortalWidth(void) const = 0; + virtual int GetMaxNetherPortalWidth(void) const = 0; + virtual void SetMinNetherPortalWidth(int a_NewMinWidth) = 0; + virtual void SetMaxNetherPortalWidth(int a_NewMaxWidth) = 0; + + /** Returns or sets the minumim or maximum netherportal height */ + virtual int GetMinNetherPortalHeight(void) const = 0; + virtual int GetMaxNetherPortalHeight(void) const = 0; + virtual void SetMinNetherPortalHeight(int a_NewMinHeight) = 0; + virtual void SetMaxNetherPortalHeight(int a_NewMaxHeight) = 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; |