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

Method duplicate

src/main/java/mudmap2/backend/Place.java:464–475  ·  view source on GitHub ↗

Creates a new place from this place a new id will be created and connections to other places not copied @return

()

Source from the content-addressed store, hash-verified

462 * @return
463 */
464 public Place duplicate() {
465 final Place place = new Place(name, getX(), getY(), null);
466
467 place.placeGroup = placeGroup;
468 place.recLevelMax = recLevelMax;
469 place.recLevelMin = recLevelMin;
470 place.infoRing = infoRing;
471 place.flags = (TreeMap<String, Boolean>) flags.clone();
472 place.comments = comments;
473
474 return place;
475 }
476
477 /**
478 * Resets the breadth search data

Callers 2

testDuplicateMethod · 0.95
pasteMethod · 0.80

Calls 2

getXMethod · 0.65
getYMethod · 0.65

Tested by 1

testDuplicateMethod · 0.76