diff options
author | Mattes D <github@xoft.cz> | 2014-03-20 09:05:53 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-03-20 09:05:53 +0100 |
commit | fe6c03595fb2f45cb2882e4e95672f492a818502 (patch) | |
tree | 945436381916f1ac3330654f317f3ddfcb872726 /src/World.h | |
parent | Errors in Lua don't include the error handler in the stack trace. (diff) | |
parent | Added braces (diff) | |
download | cuberite-fe6c03595fb2f45cb2882e4e95672f492a818502.tar cuberite-fe6c03595fb2f45cb2882e4e95672f492a818502.tar.gz cuberite-fe6c03595fb2f45cb2882e4e95672f492a818502.tar.bz2 cuberite-fe6c03595fb2f45cb2882e4e95672f492a818502.tar.lz cuberite-fe6c03595fb2f45cb2882e4e95672f492a818502.tar.xz cuberite-fe6c03595fb2f45cb2882e4e95672f492a818502.tar.zst cuberite-fe6c03595fb2f45cb2882e4e95672f492a818502.zip |
Diffstat (limited to 'src/World.h')
-rw-r--r-- | src/World.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/World.h b/src/World.h index bd9ed8d16..46aece18f 100644 --- a/src/World.h +++ b/src/World.h @@ -605,6 +605,9 @@ public: bool AreCommandBlocksEnabled(void) const { return m_bCommandBlocksEnabled; } void SetCommandBlocksEnabled(bool a_Flag) { m_bCommandBlocksEnabled = a_Flag; } + eShrapnelLevel GetTNTShrapnelLevel(void) const { return m_TNTShrapnelLevel; } + void SetTNTShrapnelLevel(eShrapnelLevel a_Flag) { m_TNTShrapnelLevel = a_Flag; } + bool ShouldUseChatPrefixes(void) const { return m_bUseChatPrefixes; } void SetShouldUseChatPrefixes(bool a_Flag) { m_bUseChatPrefixes = a_Flag; } @@ -862,6 +865,11 @@ private: /** Whether prefixes such as [INFO] are prepended to SendMessageXXX() / BroadcastChatXXX() functions */ bool m_bUseChatPrefixes; + + /** The level of DoExplosionAt() projecting random affected blocks as FallingBlock entities + See the eShrapnelLevel enumeration for details + */ + eShrapnelLevel m_TNTShrapnelLevel; cChunkGenerator m_Generator; |