MCPcopy Create free account
hub / github.com/Neop/mudmap2 / readMeta

Method readMeta

src/main/java/mudmap2/frontend/WorldTab.java:402–415  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

400 }
401
402 public void readMeta(){
403 WorldFile worldFile = getWorld().getWorldFile();
404
405 // set meta data writer
406 if(worldFile != null && worldFile.getWorldFileType() == WorldFileType.JSON){
407 WorldFileJSON wfj = null;
408 if(worldFile instanceof WorldFileJSON){
409 wfj = (WorldFileJSON) worldFile;
410 } else if(worldFile instanceof WorldFileDefault){
411 wfj = (WorldFileJSON) ((WorldFileDefault) worldFile).getWorldFile();
412 }
413 if(wfj != null) setMeta(wfj.getMetaData());
414 }
415 }
416
417 public void setMeta(JSONObject meta){
418 if(meta != null){

Callers 1

createMethod · 0.95

Calls 5

getWorldMethod · 0.95
getWorldFileTypeMethod · 0.95
setMetaMethod · 0.95
getMetaDataMethod · 0.95
getWorldFileMethod · 0.45

Tested by

no test coverage detected