summaryrefslogtreecommitdiffstats
path: root/source/World.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-06 18:58:31 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-06 18:58:31 +0200
commit4c370798d52b1b7c055c49ff4a38f73cf720c82e (patch)
treecb9c7233b4b55d8e6cb1fab410b81ea16f89d353 /source/World.h
parentLua plugins can get player's equipped item (diff)
downloadcuberite-4c370798d52b1b7c055c49ff4a38f73cf720c82e.tar
cuberite-4c370798d52b1b7c055c49ff4a38f73cf720c82e.tar.gz
cuberite-4c370798d52b1b7c055c49ff4a38f73cf720c82e.tar.bz2
cuberite-4c370798d52b1b7c055c49ff4a38f73cf720c82e.tar.lz
cuberite-4c370798d52b1b7c055c49ff4a38f73cf720c82e.tar.xz
cuberite-4c370798d52b1b7c055c49ff4a38f73cf720c82e.tar.zst
cuberite-4c370798d52b1b7c055c49ff4a38f73cf720c82e.zip
Diffstat (limited to '')
-rw-r--r--source/World.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/World.h b/source/World.h
index 16c80bd82..0fb2bac7c 100644
--- a/source/World.h
+++ b/source/World.h
@@ -252,6 +252,13 @@ public:
// TODO: NIBBLETYPE GetBlockActualLight(int a_BlockX, int a_BlockY, int a_BlockZ); // tolua_export
void GetBlockTypeMeta(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta); // tolua_export
+ /** Writes the block area into the specified coords.
+ Returns true if all chunks have been processed.
+ Prefer cBlockArea::Write() instead, this is the internal implementation; cBlockArea does error checking, too.
+ a_DataTypes is a bitmask of cBlockArea::baXXX constants ORed together.
+ */
+ bool WriteBlockArea(cBlockArea & a_Area, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ, int a_DataTypes);
+
/// Spawns item pickups for each item in the list. May compress pickups if too many entities:
void SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double a_BlockY, double a_BlockZ, double a_FlyAwaySpeed = 1.0);