Search in sources :

Example 1 with PostInitEvent

use of net.modificationstation.stationapi.api.event.mod.PostInitEvent 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());
}
Also used : InitEvent(net.modificationstation.stationapi.api.event.mod.InitEvent) PostInitEvent(net.modificationstation.stationapi.api.event.mod.PostInitEvent) PreInitEvent(net.modificationstation.stationapi.api.event.mod.PreInitEvent) PreInitEvent(net.modificationstation.stationapi.api.event.mod.PreInitEvent) PostInitEvent(net.modificationstation.stationapi.api.event.mod.PostInitEvent)

Aggregations

InitEvent (net.modificationstation.stationapi.api.event.mod.InitEvent)1 PostInitEvent (net.modificationstation.stationapi.api.event.mod.PostInitEvent)1 PreInitEvent (net.modificationstation.stationapi.api.event.mod.PreInitEvent)1