mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-10 22:36:06 +01:00
298ca3e9f1
- 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
20 lines
454 B
Java
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;
|
|
}
|
|
}
|