Java 类cpw.mods.fml.common.event.FMLServerStoppingEvent 实例源码

项目:vsminecraft    文件:Mekanism.java   
@EventHandler
public void serverStopping(FMLServerStoppingEvent event)
{
    if(general.voiceServerEnabled)
    {
        voiceManager.stop();
    }

    //Clear all cache data
    jetpackOn.clear();
    gasmaskOn.clear();
    activeVibrators.clear();
    worldTickHandler.resetRegenChunks();
    privateTeleporters.clear();

    //Reset consistent managers
    MultiblockManager.reset();
    FrequencyManager.reset();
    TransporterManager.reset();
    PathfinderCache.reset();
    TransmitterNetworkRegistry.reset();
}
项目:CreeperHostGui    文件:CreeperHostServer.java   
@Mod.EventHandler
public void serverStopping(FMLServerStoppingEvent event)
{
    if (!CreeperHost.instance.active)
        return;
    serverOn = false;
    serializePreload();
    pregenTasks.clear();
}
项目:WorldBorder-Forge    文件:WorldBorder.java   
@Mod.EventHandler
@SideOnly(Side.SERVER)
public void serverStop(FMLServerStoppingEvent event)
{
    DynMapFeatures.removeAllBorders();
    Config.storeFillTask();
}
项目:Elite-Armageddon    文件:EliteArmageddon.java   
@EventHandler
public void serverStopping(FMLServerStoppingEvent sabtsEvent)
{
    for(EAPluginContainer plugin : EALoader.instance().loadedPlugins)
    {
        plugin.plugin.worldStop();
    }
    EALoader.instance().loadedPlugins.clear();
}
项目:SmartBackup    文件:SmartBackup.java   
@EventHandler
public void serverStoppingEvent(FMLServerStoppingEvent event) {
  manager.interruptBackups();
  try {
    manager.waitForBackups();
  } catch (InterruptedException e) {
    return;
  }
}
项目:D3Log    文件:D3Log.java   
@Mod.EventHandler
public void serverStopping(FMLServerStoppingEvent event)
{
    if (event.getSide().isClient()) return;
    LOGGING_THREAD.end();
    try
    {
        dataSource.close();
    }
    catch (SQLException e)
    {
        logger.error(e.getMessage(), e);
    }
}
项目:IsoBlockProjector    文件:IsoBlockProjector.java   
@EventHandler
  public void onFMLServerStoppingEvent(FMLServerStoppingEvent e) {
    log.info("Stopping BlockTransfer server");
    MinecraftForge.EVENT_BUS.unregister(this);
      FMLCommonHandler.instance().bus().unregister(this);
      IBPserver.stop();
      try {
    IBPserverthread.join();
} catch (InterruptedException ex) {
    throw new RuntimeException("Interrupted during BlockTransfer server shutdown",ex);
}
  }
项目:rpginventory    文件:RpgMastersAddon.java   
@EventHandler
public void onServerStopping(FMLServerStoppingEvent evt){
    if(IPet.playersWithActivePets.size() > 0)
        for(PetID pet : IPet.playersWithActivePets.values()){
            pet.retrievePet();
        }
}
项目:NOVA-Core    文件:NovaMinecraft.java   
@Mod.EventHandler
public void serverStopping(FMLServerStoppingEvent event) {
    Game.events().publish(new ServerEvent.Stop());
}
项目:Logistic-Storage    文件:LogisticStorage.java   
@EventHandler
public void onServerStopping(FMLServerStoppingEvent event)
{
    //DataSaveing
}
项目:FastAsyncWorldedit    文件:ForgeMain.java   
@Mod.EventHandler
public void serverStopping(FMLServerStoppingEvent event) {
    for (EntityPlayerMP player : (List<EntityPlayerMP>)MinecraftServer.getServer().getConfigurationManager().playerEntityList) {
        handleQuit(player);
    }
}
项目:ThermalRecycling    文件:ThermalRecycling.java   
@EventHandler
public void serverStopping(final FMLServerStoppingEvent event) {
    proxy.serverStopping(event);
}
项目:YetAnotherBackupMod2    文件:YABM2.java   
@Mod.EventHandler
public void serverStopping(FMLServerStoppingEvent event)
{
    backupManager.stop();
}
项目:ChunkyPeripherals    文件:ChunkyPeripherals.java   
@EventHandler
public void atServerStopping(FMLServerStoppingEvent e)
{
    isServerStopping=true;
}
项目:TickDynamic    文件:TickDynamicMod.java   
@Subscribe
public void serverStop(FMLServerStoppingEvent event) {
    tpsTimer.cancel();
    server = null;
}
项目:EightInSeven    文件:EightInSeven.java   
@SubscribeEvent
public void stopping(FMLServerStoppingEvent event) {
    if (visibilityRecalcService != null && !visibilityRecalcService.isShutdown())
        visibilityRecalcService.shutdown();
}
项目:UsefulPets    文件:UsefulPets.java   
@EventHandler
public void serverStopping( FMLServerStoppingEvent event )
{
    petData.save();
}
项目:SpongeBukkit    文件:SpongeBukkitMod.java   
@Mod.EventHandler
public void on(FMLServerStoppingEvent event)
{
    Bukkit.shutdown();
}
项目:CrayCrafting    文件:CrayCrafting.java   
@Mod.EventHandler()
public void eventHandler(FMLServerStoppingEvent event)
{
    if (!MinecraftServer.getServer().isDedicatedServer()) RecipeRegistry.undo();
}
项目:bUpload    文件:bUpload.java   
@EventHandler
public void serverStop(FMLServerStoppingEvent event) {
    ConfigHandler.save();
}
项目:Dimensional-Pockets    文件:DimensionalPockets.java   
@EventHandler
public void onServerStopping(FMLServerStoppingEvent event) {
    PocketRegistry.saveData();
    ChunkLoaderHandler.clearTicketMap();
}
项目:Apocalyptic    文件:Apocalyptic.java   
@ServerStopping
public void serverStopping(FMLServerStoppingEvent event) {
    mlt.saveAllPlayers();
    apLogger.info("[Apocalyptic] Main life system unloaded with saving");
}
项目:MyTown2    文件:MyTown.java   
@EventHandler
public void serverStopping(FMLServerStoppingEvent ev) {
    datasource.deleteAllBlockOwners();
    ProtectionManager.saveBlockOwnersToDB();
    datasource.stop();
}
项目:MoarPeripherals    文件:MoarPeripherals.java   
@EventHandler
public void serverStopping(FMLServerStoppingEvent e) {
    isServerStopping = true;
}
项目:SimplyJetpacks    文件:SimplyJetpacks.java   
@EventHandler
public static void serverStopping(FMLServerStoppingEvent evt) {
    SyncHandler.clearAll();
}
项目:ShadowsOfPhysis    文件:Physis.java   
@Mod.EventHandler
public void serverStopping(FMLServerStoppingEvent event) {
    proxy.serverStopping(event);
}
项目:mineduino    文件:MineDuinoMod.java   
@Mod.EventHandler
public void serverStop(FMLServerStoppingEvent event){
    System.out.println("server stopped");
    SerialManager.getInstance().close();
}
项目:playblock    文件:ClientRuntime.java   
@Override
public void serverStopping(FMLServerStoppingEvent event) {
    super.serverStopping(event);

    manager.releaseAll();
}
项目:playblock    文件:PlayBlock.java   
@EventHandler
public void serverStopping(FMLServerStoppingEvent event) {
    runtime.serverStopping(event);
}
项目:someluigis-peripherals    文件:SLPMod.java   
@ServerStopping
public void serverstopping(FMLServerStoppingEvent evt) {
    SLPHTTPServer.stop();
}
项目:InvScan    文件:InvScanLive.java   
@Mod.ServerStopping
public void serverShutdown(FMLServerStoppingEvent event){
    Signs.saveArray(Signs.Proclist);
}
项目:MobSpawnControls2    文件:MobSpawnControls.java   
@EventHandler 
public void serverStopping(FMLServerStoppingEvent event) {
    logger.info("Unloading spawn configuration");
    MSCLogFormatter.log.clear();
    config = null;
}
项目:ModpackInfo    文件:ModpackInfo.java   
@EventHandler
public void serverUnload(FMLServerStoppingEvent event) {

}
项目:ModpackInfo    文件:Proxy.java   
public void serverStopping(final FMLServerStoppingEvent event) {

}
项目:ThermalRecycling    文件:Proxy.java   
public void serverStopping(final FMLServerStoppingEvent event) {

    }
项目:AbacusCommonsLib    文件:ATemplateMod.java   
/**
 * A public method to handle the server-side stopping functionality.<p/>
 * From the {@link EventHandler} javadoc for methods using the {@link FMLServerStoppingEvent} parameter:
 * <pre>
 * FMLServerStoppingEvent:
 * Do what you need to before the server has started its shutdown sequence.
 * </pre>
 * @param event A Forge event handler for when the server is beginning to end.
 */
@EventHandler
abstract public void serverStopDuring(FMLServerStoppingEvent event);
项目:ShadowsOfPhysis    文件:CommonProxy.java   
public void serverStopping(FMLServerStoppingEvent event) {

}
项目:playblock    文件:SharedRuntime.java   
/**
 * Called on server stop.
 * 
 * @param event
 *            the event
 */
public void serverStopping(FMLServerStoppingEvent event) {
}
项目:minecraft-mod-python    文件:IPythonMod.java   
/**
 * Called when the server-stopping event occurs.
 *
 * *event* is the server-stopping event.
 */
public void serverStopping(FMLServerStoppingEvent event);
项目:minecraft-mod-python    文件:JavaMod.java   
/**
 * Send the server-stopping event to the python mod.
 *
 * *event* is the server-stopping event.
 */
public void serverStopping(FMLServerStoppingEvent event) {
    this.log.fine("Server stopping.");
    this.pythonMod.serverStopping(event);
}