Flywheel/src/main/java/com/jozufozu/flywheel/event/GatherContextEvent.java
2021-09-15 09:26:51 +02:00

28 lines
629 B
Java

package com.jozufozu.flywheel.event;
import com.jozufozu.flywheel.backend.Backend;
import net.minecraftforge.eventbus.api.Event;
import net.minecraftforge.fml.event.IModBusEvent;
public class GatherContextEvent extends Event implements IModBusEvent {
private final Backend backend;
private final boolean firstLoad;
public GatherContextEvent(Backend backend, boolean firstLoad) {
this.backend = backend;
this.firstLoad = firstLoad;
}
public Backend getBackend() {
return backend;
}
/**
* @return true iff it is the first time the event is fired.
*/
public boolean isFirstLoad() {
return firstLoad;
}
}