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

Method copy

src/main/java/mudmap2/CopyPaste.java:58–66  ·  view source on GitHub ↗

Cuts the places relatively to x, y @param places @param x @param y

(final HashSet<Place> places, final int x, final int y)

Source from the content-addressed store, hash-verified

56 * @param y
57 */
58 public static void copy(final HashSet<Place> places, final int x, final int y) {
59 resetCopy();
60
61 copyPlaces = (HashSet<Place>) places.clone();
62 copyMode = true;
63 copydx = x;
64 copydy = y;
65 generateLocations(x, y);
66 }
67
68 /**
69 * Copies the places relatively to x, y

Callers 3

actionPerformedMethod · 0.80
keyPressedMethod · 0.80
backupMethod · 0.80

Calls 2

resetCopyMethod · 0.95
generateLocationsMethod · 0.95

Tested by

no test coverage detected