本文整理汇总了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();
}
示例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();
}
示例3: serverStop
import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@Mod.EventHandler
@SideOnly(Side.SERVER)
public void serverStop(FMLServerStoppingEvent event)
{
DynMapFeatures.removeAllBorders();
Config.storeFillTask();
}
示例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();
}
示例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;
}
}
示例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);
}
}
示例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);
}
}
示例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();
}
}
示例9: serverStopping
import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@Mod.EventHandler
public void serverStopping(FMLServerStoppingEvent event) {
Game.events().publish(new ServerEvent.Stop());
}
示例10: onServerStopping
import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@EventHandler
public void onServerStopping(FMLServerStoppingEvent event)
{
//DataSaveing
}
示例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);
}
}
示例12: serverStopping
import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@EventHandler
public void serverStopping(final FMLServerStoppingEvent event) {
proxy.serverStopping(event);
}
示例13: serverStopping
import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@Mod.EventHandler
public void serverStopping(FMLServerStoppingEvent event)
{
backupManager.stop();
}
示例14: atServerStopping
import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@EventHandler
public void atServerStopping(FMLServerStoppingEvent e)
{
isServerStopping=true;
}
示例15: serverStop
import cpw.mods.fml.common.event.FMLServerStoppingEvent; //导入依赖的package包/类
@Subscribe
public void serverStop(FMLServerStoppingEvent event) {
tpsTimer.cancel();
server = null;
}