19 lines
628 B
Java
19 lines
628 B
Java
package io.gitlab.jfronny.inceptum.launcher.system.setup;
|
|
|
|
import io.gitlab.jfronny.inceptum.launcher.model.mojang.VersionInfo;
|
|
import io.gitlab.jfronny.inceptum.launcher.system.instance.LoaderInfo;
|
|
import io.gitlab.jfronny.inceptum.launcher.util.ProcessState;
|
|
|
|
public record SetupStepInfo(VersionInfo version,
|
|
LoaderInfo loader,
|
|
String name,
|
|
ProcessState currentState) {
|
|
public void setState(String state) {
|
|
currentState.updateStep(state);
|
|
}
|
|
|
|
public boolean isCancelled() {
|
|
return currentState.isCancelled;
|
|
}
|
|
}
|