MCPcopy Create free account
hub / github.com/Garten/sourcecraft / getPlace

Method getPlace

src/periphery/Places.java:40–50  ·  view source on GitHub ↗
(String searchedName)

Source from the content-addressed store, hash-verified

38 }
39
40 public Place getPlace(String searchedName) {
41 Object[] placesArray = this.places.toArray();
42 for (Object object : placesArray) {
43 Place posPlace = (Place) object;
44 if (posPlace.getDisplayName()
45 .equals(searchedName)) {
46 return posPlace;
47 }
48 }
49 return null;
50 }
51
52 public void addPlace(Place place) {
53 this.places.add(place);

Callers

nothing calls this directly

Calls 2

getDisplayNameMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected