MCPcopy Create free account
hub / github.com/cuberite/cuberite / LoadFromJson

Method LoadFromJson

src/BlockEntities/JukeboxEntity.cpp:121–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120
121bool cJukeboxEntity::LoadFromJson(const Json::Value & a_Value)
122{
123 m_PosX = a_Value.get("x", 0).asInt();
124 m_PosY = a_Value.get("y", 0).asInt();
125 m_PosZ = a_Value.get("z", 0).asInt();
126
127 m_Record = a_Value.get("Record", 0).asInt();
128
129 return true;
130}
131
132
133

Callers

nothing calls this directly

Calls 2

asIntMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected