aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/events/RepositoryReloadEvent.java
blob: b0ffc3e751ddbd72f89a0619aa6f52840c394cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package io.github.moulberry.notenoughupdates.events;

import java.io.File;

public class RepositoryReloadEvent extends NEUEvent {
	private final File baseFile;
	private boolean isFirstLoad;

	public RepositoryReloadEvent(File baseFile, boolean isFirstLoad) {
		this.baseFile = baseFile;
		this.isFirstLoad = isFirstLoad;
	}

	public boolean isFirstLoad() {
		return isFirstLoad;
	}

	public File getRepositoryRoot() {
		return baseFile;
	}
}