diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-02-08 17:01:44 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-02-08 17:01:44 +0100 |
commit | 7c0a7d662daec45a44bdf598735d1600bf7c187d (patch) | |
tree | 28886a3bb1b71b127821a05d58505e26b08e0a0b /source/ChunkDef.h | |
parent | Added cBlockArea:CopyTo() and :CopyFrom(), so now block areas can be duplicated easily. (diff) | |
download | cuberite-7c0a7d662daec45a44bdf598735d1600bf7c187d.tar cuberite-7c0a7d662daec45a44bdf598735d1600bf7c187d.tar.gz cuberite-7c0a7d662daec45a44bdf598735d1600bf7c187d.tar.bz2 cuberite-7c0a7d662daec45a44bdf598735d1600bf7c187d.tar.lz cuberite-7c0a7d662daec45a44bdf598735d1600bf7c187d.tar.xz cuberite-7c0a7d662daec45a44bdf598735d1600bf7c187d.tar.zst cuberite-7c0a7d662daec45a44bdf598735d1600bf7c187d.zip |
Diffstat (limited to 'source/ChunkDef.h')
-rw-r--r-- | source/ChunkDef.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/ChunkDef.h b/source/ChunkDef.h index 0eebabefe..9e5f190b8 100644 --- a/source/ChunkDef.h +++ b/source/ChunkDef.h @@ -209,6 +209,12 @@ public: } + inline static void SetBlock(BLOCKTYPE * a_BlockTypes, int a_Index, BLOCKTYPE a_Type) + { + a_BlockTypes[a_Index] = a_Type; + } + + inline static BLOCKTYPE GetBlock(const BLOCKTYPE * a_BlockTypes, int a_X, int a_Y, int a_Z) { ASSERT((a_X >= 0) && (a_X < Width)); |