Java 类net.minecraftforge.fml.common.event.FMLServerStoppedEvent 实例源码

项目:Halloween    文件:HalloweenMod.java   
@EventHandler
public static void onServerStopped(FMLServerStoppedEvent event)
{
    if (ModConfiguration.halloweenCheckInterval > 0)
    {
        // stop the scheduler
        scheduler.schedule(new Runnable()
        {
            @Override
            public void run()
            {
                handle.cancel(true);
            }

        }, 0, TimeUnit.SECONDS);
    }
}
项目:simpleretrogen    文件:WorldRetrogen.java   
@EventHandler
public void serverStopped(FMLServerStoppedEvent evt)
{
    Set<IWorldGenerator> worldGens = ObfuscationReflectionHelper.getPrivateValue(GameRegistry.class, null, "worldGenerators");
    Map<IWorldGenerator,Integer> worldGenIdx = ObfuscationReflectionHelper.getPrivateValue(GameRegistry.class, null, "worldGeneratorIndex");

    for (TargetWorldWrapper tww : delegates.values())
    {
        worldGens.remove(tww);
        Integer idx = worldGenIdx.remove(tww);
        worldGens.add(tww.delegate);
        worldGenIdx.put(tww.delegate,idx);
    }

    delegates.clear();
}
项目:FirstAid    文件:FirstAid.java   
@Mod.EventHandler
public void onServerStop(FMLServerStoppedEvent event) {
    logger.debug("Cleaning up");
    PlayerDataManager.capList.clear();
    PlayerDataManager.tutorialDone.clear();
    EventHandler.hitList.clear();
}
项目:justenoughdimensions    文件:JustEnoughDimensions.java   
@Mod.EventHandler
public void serverStopped(FMLServerStoppedEvent event)
{
    // Unregister custom dimensions. This is only useful in single player,
    // so that all the dimensions won't immediately load when joining a world again.
    DimensionConfig.instance().unregisterCustomDimensions();
}
项目:Hats    文件:Hats.java   
@Mod.EventHandler
public void serverStopped(FMLServerStoppedEvent event)
{
    eventHandlerServer.mobHats.clear();
    eventHandlerServer.playerHats.clear();
    eventHandlerServer.playerActivity.clear();
    eventHandlerServer.playerTradeRequests.clear();
    eventHandlerServer.activeTrades.clear();
    proxy.playerWornHats.clear();
}
项目:Solar    文件:ServerProxy.java   
@Mod.EventHandler
public static void serverStop(FMLServerStoppedEvent event) {
    SolarApi.getRelativityPowerMap().clear();
    SolarApi.getRelativityMap().clear();
    SolarApi.setQuantumData(null);
}
项目:modName    文件:ClientProxy.java   
@Override
public void serverStopped(FMLServerStoppedEvent event) {
    GrassColours.clearCache();
}
项目:modName    文件:ExampleMod.java   
@Mod.EventHandler
public void serverStopped(FMLServerStoppedEvent event) {
    proxy.serverStopped(event);
}
项目:ExPetrum    文件:ExPetrum.java   
@EventHandler
public void serverStopped(FMLServerStoppedEvent event)
   {
       EntityPackManager.saveAllPacksInfo(false);
       EntityPackManager.cleanup();
   }
项目:Geographicraft    文件:DimensionalSettingsRegistry.java   
public void serverStopped(FMLServerStoppedEvent event){
    for (DimensionalSettingsModifier modifier: modifiers.values()) {
        modifier.serverStopped(event);
    }
}
项目:Geographicraft    文件:DimensionManager.java   
public void serverStopped(FMLServerStoppedEvent event) {
    new HashMap<Integer,GenLayerRiverMixWrapper>();
    dimensionalSettings = new HashMap<Integer,ClimateControlSettings>();
}
项目:DynamicSurroundings    文件:DSurround.java   
@EventHandler
public void serverStopped(@Nonnull final FMLServerStoppedEvent event) {
    proxy.serverStopped(event);
}
项目:DynamicSurroundings    文件:Proxy.java   
public void serverStopped(@Nonnull final FMLServerStoppedEvent event) {
    ServiceManager.deinitialize();
}
项目:TaleCraft    文件:TaleCraft.java   
@Mod.EventHandler
public void serverStopped(FMLServerStoppedEvent event){
    //logger.info("Server stopped: " + event + " [TCINFO]");
}
项目:ItemBlacklist    文件:ItemBlacklist.java   
@Mod.EventHandler
public void serverStopped(FMLServerStoppedEvent event)
{
    MinecraftForge.EVENT_BUS.unregister(ServerEventHandlers.I);
}
项目:dragon-mounts    文件:CommonProxy.java   
public void onServerStopped(FMLServerStoppedEvent evt) {
}
项目:EnderIO    文件:EnderIO.java   
@EventHandler
public void serverStopped(@Nonnull FMLServerStoppedEvent event) {
  ServerTickHandler.flush();
  ServerChannelRegister.instance.reset();
}
项目:modName    文件:CommonProxy.java   
public void serverStopped(FMLServerStoppedEvent e) {

}
项目:ForgeAdmin    文件:IDatabase.java   
/**
 * Called at the end of server shutdown. End connections here?
 */
void closeDatabase(FMLServerStoppedEvent event);
项目:ForgeAdmin    文件:JsonDatabase.java   
@Override
public void closeDatabase(FMLServerStoppedEvent event) {

}
项目:Geographicraft    文件:DimensionalSettingsModifier.java   
abstract public void serverStopped(FMLServerStoppedEvent event);