当前位置: 首页>>代码示例>>Java>>正文


Java FMLServerStoppingEvent类代码示例

本文整理汇总了Java中cpw.mods.fml.common.event.FMLServerStoppingEvent的典型用法代码示例。如果您正苦于以下问题:Java FMLServerStoppingEvent类的具体用法?Java FMLServerStoppingEvent怎么用?Java FMLServerStoppingEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


FMLServerStoppingEvent类属于cpw.mods.fml.common.event包,在下文中一共展示了FMLServerStoppingEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: serverStopping

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@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();
}
 
开发者ID:Microsoft,项目名称:vsminecraft,代码行数:23,代码来源:Mekanism.java

示例2: serverStopping

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@Mod.EventHandler
public void serverStopping(FMLServerStoppingEvent event)
{
    if (!CreeperHost.instance.active)
        return;
    serverOn = false;
    serializePreload();
    pregenTasks.clear();
}
 
开发者ID:CreeperHost,项目名称:CreeperHostGui,代码行数:10,代码来源:CreeperHostServer.java

示例3: serverStop

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@Mod.EventHandler
@SideOnly(Side.SERVER)
public void serverStop(FMLServerStoppingEvent event)
{
    DynMapFeatures.removeAllBorders();
    Config.storeFillTask();
}
 
开发者ID:RoyCurtis,项目名称:WorldBorder-Forge,代码行数:8,代码来源:WorldBorder.java

示例4: serverStopping

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@EventHandler
public void serverStopping(FMLServerStoppingEvent sabtsEvent)
{
	for(EAPluginContainer plugin : EALoader.instance().loadedPlugins)
	{
		plugin.plugin.worldStop();
	}
	EALoader.instance().loadedPlugins.clear();
}
 
开发者ID:Cephrus,项目名称:Elite-Armageddon,代码行数:10,代码来源:EliteArmageddon.java

示例5: serverStoppingEvent

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@EventHandler
public void serverStoppingEvent(FMLServerStoppingEvent event) {
  manager.interruptBackups();
  try {
    manager.waitForBackups();
  } catch (InterruptedException e) {
    return;
  }
}
 
开发者ID:Packeteers,项目名称:SmartBackup,代码行数:10,代码来源:SmartBackup.java

示例6: serverStopping

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@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);
    }
}
 
开发者ID:DoubleDoorDevelopment,项目名称:D3Log,代码行数:15,代码来源:D3Log.java

示例7: onFMLServerStoppingEvent

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@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);
}
  }
 
开发者ID:gentili,项目名称:IsoBlockProjector,代码行数:13,代码来源:IsoBlockProjector.java

示例8: onServerStopping

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@EventHandler
public void onServerStopping(FMLServerStoppingEvent evt){
	if(IPet.playersWithActivePets.size() > 0)
		for(PetID pet : IPet.playersWithActivePets.values()){
			pet.retrievePet();
		}
}
 
开发者ID:ArtixAllMighty,项目名称:rpginventory,代码行数:8,代码来源:RpgMastersAddon.java

示例9: serverStopping

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@Mod.EventHandler
public void serverStopping(FMLServerStoppingEvent event) {
	Game.events().publish(new ServerEvent.Stop());
}
 
开发者ID:NOVA-Team,项目名称:NOVA-Core,代码行数:5,代码来源:NovaMinecraft.java

示例10: onServerStopping

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@EventHandler
public void onServerStopping(FMLServerStoppingEvent event)
{
	//DataSaveing
}
 
开发者ID:TinyModularThings,项目名称:Logistic-Storage,代码行数:6,代码来源:LogisticStorage.java

示例11: serverStopping

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@Mod.EventHandler
public void serverStopping(FMLServerStoppingEvent event) {
    for (EntityPlayerMP player : (List<EntityPlayerMP>)MinecraftServer.getServer().getConfigurationManager().playerEntityList) {
        handleQuit(player);
    }
}
 
开发者ID:boy0001,项目名称:FastAsyncWorldedit,代码行数:7,代码来源:ForgeMain.java

示例12: serverStopping

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@EventHandler
public void serverStopping(final FMLServerStoppingEvent event) {
	proxy.serverStopping(event);
}
 
开发者ID:OreCruncher,项目名称:ThermalRecycling,代码行数:5,代码来源:ThermalRecycling.java

示例13: serverStopping

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@Mod.EventHandler
public void serverStopping(FMLServerStoppingEvent event)
{
	backupManager.stop();
}
 
开发者ID:szernex,项目名称:YetAnotherBackupMod2,代码行数:6,代码来源:YABM2.java

示例14: atServerStopping

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@EventHandler
public void atServerStopping(FMLServerStoppingEvent e)
{
	isServerStopping=true;
}
 
开发者ID:c-rizz,项目名称:ChunkyPeripherals,代码行数:6,代码来源:ChunkyPeripherals.java

示例15: serverStop

import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@Subscribe
public void serverStop(FMLServerStoppingEvent event) {
	tpsTimer.cancel();
	server = null;
}
 
开发者ID:wildex999,项目名称:TickDynamic,代码行数:6,代码来源:TickDynamicMod.java


注:本文中的cpw.mods.fml.common.event.FMLServerStoppingEvent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。