use of net.modificationstation.stationapi.api.event.mod.InitEvent in project StationAPI by ModificationStation.
the class StationAPI method setupMods.
/**
* Loads main entrypoints, also invokes preInit, init and postInit events. No Minecraft classes must be referenced here.
*/
private void setupMods() {
setupEntrypoint(of(MODID, "event_bus"));
setupEntrypoint(of(MODID, "event_bus_" + FabricLoader.getInstance().getEnvironmentType().name().toLowerCase()));
LOGGER.info("Invoking PreInit event...");
EVENT_BUS.post(new PreInitEvent());
LOGGER.info("Invoking Init event...");
EVENT_BUS.post(new InitEvent());
LOGGER.info("Invoking PostInit event...");
EVENT_BUS.post(new PostInitEvent());
}
Aggregations