Flywheel/src/main/java/com/jozufozu/flywheel/event/GatherContextEvent.java

21 lines
454 B
Java
Raw Normal View History

package com.jozufozu.flywheel.event;
import net.minecraftforge.eventbus.api.Event;
2021-09-15 09:26:51 +02:00
import net.minecraftforge.fml.event.IModBusEvent;
public class GatherContextEvent extends Event implements IModBusEvent {
private final boolean firstLoad;
public GatherContextEvent(boolean firstLoad) {
this.firstLoad = firstLoad;
}
/**
* @return true iff it is the first time the event is fired.
*/
public boolean isFirstLoad() {
return firstLoad;
}
}