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

Method LoadFromJson

src/BlockEntities/NoteEntity.cpp:128–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126
127
128bool cNoteEntity::LoadFromJson(const Json::Value & a_Value)
129{
130
131 m_PosX = a_Value.get("x", 0).asInt();
132 m_PosY = a_Value.get("y", 0).asInt();
133 m_PosZ = a_Value.get("z", 0).asInt();
134
135 m_Pitch = (char)a_Value.get("p", 0).asInt();
136
137 return true;
138}
139
140
141

Callers

nothing calls this directly

Calls 2

asIntMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected