diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-05-30 23:29:51 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-05-30 23:29:51 +0200 |
commit | 7af3df03a056667ffeef71b785f6633d3cff957b (patch) | |
tree | bd0294bd3f8158372958c102fa9b4ab3cf8a50d5 /source/cChunk.h | |
parent | Melon and pumpkin stems now grow melons and pumpkins (diff) | |
download | cuberite-7af3df03a056667ffeef71b785f6633d3cff957b.tar cuberite-7af3df03a056667ffeef71b785f6633d3cff957b.tar.gz cuberite-7af3df03a056667ffeef71b785f6633d3cff957b.tar.bz2 cuberite-7af3df03a056667ffeef71b785f6633d3cff957b.tar.lz cuberite-7af3df03a056667ffeef71b785f6633d3cff957b.tar.xz cuberite-7af3df03a056667ffeef71b785f6633d3cff957b.tar.zst cuberite-7af3df03a056667ffeef71b785f6633d3cff957b.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cChunk.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/cChunk.h b/source/cChunk.h index f9456c40c..3ae29aaba 100644 --- a/source/cChunk.h +++ b/source/cChunk.h @@ -161,6 +161,14 @@ public: m_IsSaving = false;
}
+ /// Sets the blockticking to start at the specified block. Only one blocktick may be set, second call overwrites the first call
+ inline void SetNextBlockTick(int a_RelX, int a_RelY, int a_RelZ)
+ {
+ m_BlockTickX = a_RelX;
+ m_BlockTickY = a_RelY;
+ m_BlockTickZ = a_RelZ;
+ }
+
inline NIBBLETYPE GetMeta(int a_RelX, int a_RelY, int a_RelZ) {return cChunkDef::GetNibble(m_BlockMeta, a_RelX, a_RelY, a_RelZ); }
inline NIBBLETYPE GetMeta(int a_BlockIdx) {return cChunkDef::GetNibble(m_BlockMeta, a_BlockIdx); }
inline void SetMeta(int a_RelX, int a_RelY, int a_RelZ, NIBBLETYPE a_Meta) { cChunkDef::SetNibble(m_BlockMeta, a_RelX, a_RelY, a_RelZ, a_Meta); }
|