mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-11 06:46:05 +01:00
28 lines
629 B
Java
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;
|
|
}
|
|
}
|