diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-09-30 23:20:21 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-09-30 23:20:21 +0200 |
commit | 9e4a5f824ae88e3a19de6a14db91b43c1759e29e (patch) | |
tree | 525247a87cf3c28c3407d3f0768e580e2c68e2fb /src/BlockEntities/JukeboxEntity.cpp | |
parent | Merge pull request #1485 from mc-server/PluginMessages (diff) | |
download | cuberite-9e4a5f824ae88e3a19de6a14db91b43c1759e29e.tar cuberite-9e4a5f824ae88e3a19de6a14db91b43c1759e29e.tar.gz cuberite-9e4a5f824ae88e3a19de6a14db91b43c1759e29e.tar.bz2 cuberite-9e4a5f824ae88e3a19de6a14db91b43c1759e29e.tar.lz cuberite-9e4a5f824ae88e3a19de6a14db91b43c1759e29e.tar.xz cuberite-9e4a5f824ae88e3a19de6a14db91b43c1759e29e.tar.zst cuberite-9e4a5f824ae88e3a19de6a14db91b43c1759e29e.zip |
Diffstat (limited to 'src/BlockEntities/JukeboxEntity.cpp')
-rw-r--r-- | src/BlockEntities/JukeboxEntity.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/BlockEntities/JukeboxEntity.cpp b/src/BlockEntities/JukeboxEntity.cpp index 1131b99b0..bb9b335e0 100644 --- a/src/BlockEntities/JukeboxEntity.cpp +++ b/src/BlockEntities/JukeboxEntity.cpp @@ -117,31 +117,3 @@ void cJukeboxEntity::SetRecord(int a_Record) - -bool cJukeboxEntity::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(); - - m_Record = a_Value.get("Record", 0).asInt(); - - return true; -} - - - - - -void cJukeboxEntity::SaveToJson(Json::Value & a_Value) -{ - a_Value["x"] = m_PosX; - a_Value["y"] = m_PosY; - a_Value["z"] = m_PosZ; - - a_Value["Record"] = m_Record; -} - - - - |