Flywheel/src/main/java/com/jozufozu/flywheel/event/GatherContextEvent.java
Jozufozu 298ca3e9f1 Reorganize and simplify
- StructTypes no longer need to be registered
 - Move backend.source to core.source
 - Move GameStateRegistry to core
 - Backend is static again
 - Loader maintains state internally
2022-01-12 21:25:03 -08:00

20 lines
454 B
Java

package com.jozufozu.flywheel.event;
import net.minecraftforge.eventbus.api.Event;
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;
}
}