use of org.spongepowered.common.launch.Lifecycle in project SpongeCommon by SpongePowered.
the class SpongeForge method onServerStoppedEvent.
@SubscribeEvent
public void onServerStoppedEvent(final FMLServerStoppedEvent event) {
final Lifecycle lifecycle = Launch.instance().lifecycle();
lifecycle.callStoppingEngineEvent((Server) event.getServer());
}
use of org.spongepowered.common.launch.Lifecycle in project SpongeCommon by SpongePowered.
the class DedicatedServerMixin_Vanilla method vanilla$callStartedEngineAndLoadedGame.
@Inject(method = "initServer", at = @At("RETURN"))
private void vanilla$callStartedEngineAndLoadedGame(final CallbackInfoReturnable<Boolean> cir) {
final Lifecycle lifecycle = Launch.instance().lifecycle();
lifecycle.callStartedEngineEvent(this);
lifecycle.callLoadedGameEvent();
}
Aggregations