diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-02 21:22:05 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-02 21:22:05 +0200 |
commit | 919f896894204d839fc316713349add442b0f633 (patch) | |
tree | c8fd4e2203b811cf3a370ca5c604ef1251dc23f7 /source/BlockArea.h | |
parent | Only apple leaves can drop apples (diff) | |
download | cuberite-919f896894204d839fc316713349add442b0f633.tar cuberite-919f896894204d839fc316713349add442b0f633.tar.gz cuberite-919f896894204d839fc316713349add442b0f633.tar.bz2 cuberite-919f896894204d839fc316713349add442b0f633.tar.lz cuberite-919f896894204d839fc316713349add442b0f633.tar.xz cuberite-919f896894204d839fc316713349add442b0f633.tar.zst cuberite-919f896894204d839fc316713349add442b0f633.zip |
Diffstat (limited to '')
-rw-r--r-- | source/BlockArea.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/BlockArea.h b/source/BlockArea.h index 49505f945..5abdab3bb 100644 --- a/source/BlockArea.h +++ b/source/BlockArea.h @@ -76,6 +76,15 @@ public: /// Returns the datatypes that are stored in the object (bitmask of baXXX values)
int GetDataTypes(void) const;
+
+ // tolua_end
+
+ // Clients can use these for faster access to all blocktypes. Be careful though!
+ /// Returns the internal pointer to the block types
+ BLOCKTYPE * GetBlockTypes(void) { return m_BlockTypes; }
+ int GetBlockCount(void) const { return m_SizeX * m_SizeY * m_SizeZ; }
+
+ // tolua_begin
protected:
|