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

Method removePlaceGroup

src/main/java/mudmap2/backend/World.java:465–473  ·  view source on GitHub ↗

Removes a PlaceGroup @param placeGroup PlaceGroup to be removed

(PlaceGroup placeGroup)

Source from the content-addressed store, hash-verified

463 * @param placeGroup PlaceGroup to be removed
464 */
465 public void removePlaceGroup(PlaceGroup placeGroup){
466 for(Layer layer: getLayers()){
467 for(Place p: layer.getPlaces()){
468 if(p.getPlaceGroup() == placeGroup) p.setPlaceGroup(null);
469 }
470 }
471 placeGroups.remove(placeGroup);
472 callListeners(placeGroup);
473 }
474
475 // --------- information colors --------------------------------------------
476 /**

Callers 2

testRemovePlaceGroupMethod · 0.95
removeEntryMethod · 0.80

Calls 6

getLayersMethod · 0.95
callListenersMethod · 0.95
setPlaceGroupMethod · 0.80
removeMethod · 0.65
getPlacesMethod · 0.45
getPlaceGroupMethod · 0.45

Tested by 1

testRemovePlaceGroupMethod · 0.76