diff options
Diffstat (limited to 'source/FurnaceEntity.h')
-rw-r--r-- | source/FurnaceEntity.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/source/FurnaceEntity.h b/source/FurnaceEntity.h index bcdc8d837..8373116d4 100644 --- a/source/FurnaceEntity.h +++ b/source/FurnaceEntity.h @@ -32,19 +32,15 @@ public: static const char * GetClassStatic() { return "cFurnaceEntity"; } - bool LoadFromFile(cFile & a_File); // deprecated format - - bool LoadFromJson(const Json::Value& a_Value ); - virtual void SaveToJson(Json::Value& a_Value ) override; - - virtual void SendTo(cClientHandle & a_Client) override; + bool LoadFromJson(const Json::Value & a_Value); - // Returns true if there's any change, forcing the chunk to go dirty. - bool Tick( float a_Dt ); - - virtual void UsedBy( cPlayer * a_Player ) override; + // cBlockEntity overrides: + virtual void SaveToJson(Json::Value & a_Value) override; + virtual void SendTo(cClientHandle & a_Client) override; + virtual bool Tick(float a_Dt) override; + virtual void UsedBy(cPlayer * a_Player) override; - bool StartCooking(); + bool StartCooking(void); /// Restarts cooking. Used after the furnace is loaded from storage to set up the internal variables so that cooking continues, if it was active. Returns true if cooking. bool ContinueCooking(void); |