GroupMove.java

net.minecraft.util.filefix.operations.GroupMove

信息

  • 全限定名:net.minecraft.util.filefix.operations.GroupMove
  • 类型:public record
  • 包:net.minecraft.util.filefix.operations
  • 源码路径:src/main/java/net/minecraft/util/filefix/operations/GroupMove.java
  • 起始行号:L10
  • 实现:FileFixOperation
  • 职责:

    TODO

字段/常量

内部类/嵌套类型

构造器

方法

下面的方法块按源码顺序生成。

public void fix(Path baseDirectory, UpgradeProgress upgradeProgress) @ L11

  • 方法名:fix
  • 源码定位:L11
  • 返回类型:void
  • 修饰符:public

参数:

  • baseDirectory: Path
  • upgradeProgress: UpgradeProgress

说明:

TODO

代码

public record GroupMove(Map<String, String> fromTo, List<Move> fixers) implements FileFixOperation {
    @Override
    public void fix(Path baseDirectory, UpgradeProgress upgradeProgress) throws IOException {
        for (Entry<String, String> entry : this.fromTo.entrySet()) {
            for (Move moveOperation : this.fixers) {
                Move relative = moveOperation.relative(entry.getKey(), entry.getValue());
                relative.fix(baseDirectory, upgradeProgress);
            }
        }
    }
}

引用的其他类