MCPcopy Create free account
hub / github.com/boxbeam/RedLib / toString

Method toString

src/redempt/redlib/misc/LocationUtils.java:180–185  ·  view source on GitHub ↗

Converts a Location to a String @param loc The Location to be stringified @param separator The separator to use between pieces of information @return The stringified Location

(Location loc, String separator)

Source from the content-addressed store, hash-verified

178 * @return The stringified Location
179 */
180 public static String toString(Location loc, String separator) {
181 return new StringBuilder().append(loc.getWorld().getName()).append(separator)
182 .append(loc.getX()).append(separator)
183 .append(loc.getY()).append(separator)
184 .append(loc.getZ()).toString();
185 }
186
187 /**
188 * Converts a String back to a Location

Callers 1

toStringMethod · 0.95

Calls 7

appendMethod · 0.80
getYMethod · 0.80
toStringMethod · 0.65
getNameMethod · 0.45
getWorldMethod · 0.45
getXMethod · 0.45
getZMethod · 0.45

Tested by

no test coverage detected