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

Method getPlaceNamesWithDefault

src/periphery/Places.java:19–28  ·  view source on GitHub ↗
(String defaultName)

Source from the content-addressed store, hash-verified

17 }
18
19 public String[] getPlaceNamesWithDefault(String defaultName) {
20 Place[] placesArray = new Place[this.places.size()];
21 placesArray = this.places.toArray(placesArray);
22 String[] result = new String[this.places.size() + 1];
23 result[0] = defaultName;
24 for (int i = 1; i < this.places.size() + 1; i++) {
25 result[i] = placesArray[i - 1].getDisplayName();
26 }
27 return result;
28 }
29
30 public String[] getPlaceNames() {
31 Place[] placesArray = new Place[this.places.size()];

Callers

nothing calls this directly

Calls 1

getDisplayNameMethod · 0.80

Tested by

no test coverage detected