SteamWar/BauSystem2.0
Archiviert
12
0

Refactoring #64

Zusammengeführt
YoyoNow hat 8 Commits von refactoring nach master 2022-02-01 09:00:53 +01:00 zusammengeführt
2 geänderte Dateien mit 2 neuen und 6 gelöschten Zeilen
Nur Änderungen aus Commit d571edd2b9 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -124,13 +124,11 @@ public class FlatteningWrapper15 implements FlatteningWrapper.IFlatteningWrapper
private final Map<String, Long> timing = new HashMap<>(); private final Map<String, Long> timing = new HashMap<>();
@Override private void start(String name) {
public void start(String name) {
timing.put(name, System.currentTimeMillis()); timing.put(name, System.currentTimeMillis());
} }
@Override private long stop(String name) {
public long stop(String name) {
return System.currentTimeMillis() - timing.getOrDefault(name, System.currentTimeMillis()); return System.currentTimeMillis() - timing.getOrDefault(name, System.currentTimeMillis());
} }

Datei anzeigen

@ -49,8 +49,6 @@ public class FlatteningWrapper {
boolean isWorldEditCommand(String command); boolean isWorldEditCommand(String command);
void setSelection(Player p, Point minPoint, Point maxPoint); void setSelection(Player p, Point minPoint, Point maxPoint);
void start(String name);
long stop(String name);
EditSession paste(File file, Point pastePoint, PasteOptions pasteOptions); EditSession paste(File file, Point pastePoint, PasteOptions pasteOptions);
EditSession paste(Clipboard clipboard, Point pastePoint, PasteOptions pasteOptions); EditSession paste(Clipboard clipboard, Point pastePoint, PasteOptions pasteOptions);
void changeColor(Clipboard clipboard, Color color) throws WorldEditException; void changeColor(Clipboard clipboard, Color color) throws WorldEditException;