summaryrefslogtreecommitdiffstats
path: root/src/BlockEntities/FurnaceEntity.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-01 07:47:17 +0200
committerMattes D <github@xoft.cz>2014-10-01 07:47:17 +0200
commit3ccda572b3535a5ac783290c4b6f082b2d1b36a1 (patch)
tree6470a1932417dbba2fe4145ae631fdd323ad7fad /src/BlockEntities/FurnaceEntity.cpp
parentMerge pull request #1487 from mc-server/BlockFixes (diff)
parentRemoved WSSCompact (diff)
downloadcuberite-3ccda572b3535a5ac783290c4b6f082b2d1b36a1.tar
cuberite-3ccda572b3535a5ac783290c4b6f082b2d1b36a1.tar.gz
cuberite-3ccda572b3535a5ac783290c4b6f082b2d1b36a1.tar.bz2
cuberite-3ccda572b3535a5ac783290c4b6f082b2d1b36a1.tar.lz
cuberite-3ccda572b3535a5ac783290c4b6f082b2d1b36a1.tar.xz
cuberite-3ccda572b3535a5ac783290c4b6f082b2d1b36a1.tar.zst
cuberite-3ccda572b3535a5ac783290c4b6f082b2d1b36a1.zip
Diffstat (limited to 'src/BlockEntities/FurnaceEntity.cpp')
-rw-r--r--src/BlockEntities/FurnaceEntity.cpp54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/BlockEntities/FurnaceEntity.cpp b/src/BlockEntities/FurnaceEntity.cpp
index fb88e9b35..4452fc00a 100644
--- a/src/BlockEntities/FurnaceEntity.cpp
+++ b/src/BlockEntities/FurnaceEntity.cpp
@@ -129,60 +129,6 @@ bool cFurnaceEntity::Tick(float a_Dt, cChunk & a_Chunk)
-bool cFurnaceEntity::LoadFromJson(const Json::Value & a_Value)
-{
- m_PosX = a_Value.get("x", 0).asInt();
- m_PosY = a_Value.get("y", 0).asInt();
- m_PosZ = a_Value.get("z", 0).asInt();
-
- Json::Value AllSlots = a_Value.get("Slots", 0);
- int SlotIdx = 0;
- for (Json::Value::iterator itr = AllSlots.begin(); itr != AllSlots.end(); ++itr)
- {
- cItem Item;
- Item.FromJson(*itr);
- SetSlot(SlotIdx, Item);
- SlotIdx++;
- }
-
- m_NeedCookTime = (int)(a_Value.get("CookTime", 0).asDouble() / 50);
- m_TimeCooked = (int)(a_Value.get("TimeCooked", 0).asDouble() / 50);
- m_FuelBurnTime = (int)(a_Value.get("BurnTime", 0).asDouble() / 50);
- m_TimeBurned = (int)(a_Value.get("TimeBurned", 0).asDouble() / 50);
-
- return true;
-}
-
-
-
-
-
-void cFurnaceEntity::SaveToJson( Json::Value& a_Value)
-{
- a_Value["x"] = m_PosX;
- a_Value["y"] = m_PosY;
- a_Value["z"] = m_PosZ;
-
- Json::Value AllSlots;
- int NumSlots = m_Contents.GetNumSlots();
- for (int i = 0; i < NumSlots; i++)
- {
- Json::Value Slot;
- m_Contents.GetSlot(i).GetJson(Slot);
- AllSlots.append(Slot);
- }
- a_Value["Slots"] = AllSlots;
-
- a_Value["CookTime"] = m_NeedCookTime * 50;
- a_Value["TimeCooked"] = m_TimeCooked * 50;
- a_Value["BurnTime"] = m_FuelBurnTime * 50;
- a_Value["TimeBurned"] = m_TimeBurned * 50;
-}
-
-
-
-
-
void cFurnaceEntity::SendTo(cClientHandle & a_Client)
{
// Nothing needs to be sent