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

Method generateLocations

src/main/java/mudmap2/CopyPaste.java:87–92  ·  view source on GitHub ↗

Calculates copyPlaceLocations relatively to x, y

(final int x, final int y)

Source from the content-addressed store, hash-verified

85 * Calculates copyPlaceLocations relatively to x, y
86 */
87 private static void generateLocations(final int x, final int y) {
88 copyPlaceLocations = new HashSet<>();
89 for (final Place place : copyPlaces) {
90 copyPlaceLocations.add(new Pair<>(place.getX() - x, place.getY() - y));
91 }
92 }
93
94 /**
95 * Checks whether the places can be pasted relatively to x,y on layer

Callers 2

copyMethod · 0.95
cutMethod · 0.95

Calls 2

getXMethod · 0.65
getYMethod · 0.65

Tested by

no test coverage detected