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

Method addPlaceGroup

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

Adds a PlaceGroup @param placeGroup new PlaceGroup

(PlaceGroup placeGroup)

Source from the content-addressed store, hash-verified

448 * @param placeGroup new PlaceGroup
449 */
450 public void addPlaceGroup(PlaceGroup placeGroup) {
451 if(placeGroup == null){
452 throw new NullPointerException();
453 }
454
455 if(!placeGroups.contains(placeGroup)){
456 placeGroups.add(placeGroup);
457 }
458 callListeners(placeGroup);
459 }
460
461 /**
462 * Removes a PlaceGroup

Callers 8

testGetPlaceGroupsMethod · 0.95
testAddPlaceGroupMethod · 0.95
testRemovePlaceGroupMethod · 0.95
putPlaceholderMethod · 0.95
readFileMethod · 0.95
pasteMethod · 0.80
createNewMethod · 0.80
setPlaceGroupMethod · 0.80

Calls 2

callListenersMethod · 0.95
containsMethod · 0.65

Tested by 3

testGetPlaceGroupsMethod · 0.76
testAddPlaceGroupMethod · 0.76
testRemovePlaceGroupMethod · 0.76