GroupMove .java

net.minecraft.util.filefix.operations.GroupMove (record, 21 lines): record with 2 components. members: fromTo, fixers, fix. imports: UpgradeProgress.

net.minecraft.util.filefix.operationsrecord21 linescommon696 B

Implements

API Surface (1)

void fix(final Path baseDirectory, final UpgradeProgress upgradeProgress)

Code Graph: Dependencies (4)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

GroupMove.java21 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util.filefix.operations;
2
3
import java.io.IOException;
4
import java.nio.file.Path;
5
import java.util.List;
6
import java.util.Map;
7
import java.util.Map.Entry;
8
import net.minecraft.util.worldupdate.UpgradeProgress;
9
10
public record GroupMove(Map<String, String> fromTo, List<Move> fixers) implements FileFixOperation {
11
	@Override
12
	public void fix(final Path baseDirectory, final UpgradeProgress upgradeProgress) throws IOException {
13
		for (Entry<String, String> entry : this.fromTo.entrySet()) {
14
			for (Move moveOperation : this.fixers) {
15
				Move relative = moveOperation.relative(entry.getKey(), entry.getValue());
16
				relative.fix(baseDirectory, upgradeProgress);
17
			}
18
		}
19
	}
20
}
21

Decompiled Minecraft 26.3 source of GroupMove (net/minecraft/util/filefix/operations/GroupMove.java) with Mojang official mappings, stored verbatim on the site.