summaryrefslogtreecommitdiffstats
path: root/source/cBlockEntity.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-16 14:42:35 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-16 14:42:35 +0100
commit423f49d175d8db6283232bd8bdc106e26bdcff4d (patch)
tree5c5cc58d1061c91d2cb39021853ce72ab59839ae /source/cBlockEntity.h
parentChunks are properly saved before being unloaded now (diff)
downloadcuberite-423f49d175d8db6283232bd8bdc106e26bdcff4d.tar
cuberite-423f49d175d8db6283232bd8bdc106e26bdcff4d.tar.gz
cuberite-423f49d175d8db6283232bd8bdc106e26bdcff4d.tar.bz2
cuberite-423f49d175d8db6283232bd8bdc106e26bdcff4d.tar.lz
cuberite-423f49d175d8db6283232bd8bdc106e26bdcff4d.tar.xz
cuberite-423f49d175d8db6283232bd8bdc106e26bdcff4d.tar.zst
cuberite-423f49d175d8db6283232bd8bdc106e26bdcff4d.zip
Diffstat (limited to 'source/cBlockEntity.h')
-rw-r--r--source/cBlockEntity.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/cBlockEntity.h b/source/cBlockEntity.h
index 4ac453e6f..ad1cf14ba 100644
--- a/source/cBlockEntity.h
+++ b/source/cBlockEntity.h
@@ -11,6 +11,11 @@ enum ENUM_BLOCK_ID;
+namespace Json
+{
+ class Value;
+};
+
class cClientHandle;
class cPlayer;
class cWorld;
@@ -41,6 +46,8 @@ public:
cWorld * GetWorld(void) const {return m_World; }
+ virtual void SaveToJson (Json::Value & a_Value ) = 0;
+
virtual void UsedBy( cPlayer * a_Player ) = 0;
virtual void SendTo( cClientHandle* a_Client ) { (void)a_Client; }