本文整理汇总了Java中cpw.mods.fml.common.event.FMLServerStoppedEvent类的典型用法代码示例。如果您正苦于以下问题:Java FMLServerStoppedEvent类的具体用法?Java FMLServerStoppedEvent怎么用?Java FMLServerStoppedEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FMLServerStoppedEvent类属于cpw.mods.fml.common.event包,在下文中一共展示了FMLServerStoppedEvent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: OnServerStopped
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
/**
* This event will be fired after the server stopped
* Only the ServerSide will receive this event.
*
* @param event
*/
public void OnServerStopped(FMLServerStoppedEvent event)
{
/*!gen.mod.hook.OnServerStopped*/
/**/
//TODO:Add your own code here
}
示例2: shutdown
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
/**
* Called when the server is stopped.
*
* @param event - the event information
*/
@EventHandler
public void shutdown(FMLServerStoppedEvent event)
{
LogHelper.info("Stopping MCManager...");
if(webServerEnabled)
webServer.stopServer();
consoleMonitor.stopLogging();
LogHelper.info("MCManager stopped.");
}
示例3: unregisterDims
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
@EventHandler
public void unregisterDims(FMLServerStoppedEvent var1)
{
WorldUtil.unregisterPlanets();
WorldUtil.unregisterSpaceStations();
}
示例4: unregisterDims
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
@EventHandler
public void unregisterDims(FMLServerStoppedEvent event) {
SpaceLog.severe("Unregister-Dims");
}
示例5: onServerStop
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
@EventHandler
public void onServerStop(FMLServerStoppedEvent event)
{
round.save();
}
示例6: serverStop
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
@EventHandler
public void serverStop(FMLServerStoppedEvent event) {
// Shutdown our throttled packet dispatcher
ServerPacketDispatcher.getInstance().halt();
ServerPacketDispatcher.shutdown();
}
示例7: serverStopped
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
public void serverStopped(FMLServerStoppedEvent event) {
generating.clear();
}
示例8: serverStopped
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
@EventHandler
public void serverStopped(FMLServerStoppedEvent event) {
structureGenerator.serverStopped(event);
structureRegister.serverStopped(event);
}
示例9: serverStopped
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
public void serverStopped(FMLServerStoppedEvent event) {
worldManagers.clear();
loadedStructures.clear();
}
示例10: atServerStopped
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
@EventHandler
public void atServerStopped(FMLServerStoppedEvent e)
{
}
示例11: serverStopped
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
@Mod.EventHandler
public void serverStopped(final FMLServerStoppedEvent event) {
}
示例12: serverStop
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
@EventHandler
public void serverStop(FMLServerStoppedEvent event) {
ThreadBlockChecking.instance().onLeaveWorld();
}
示例13: onServerStopped
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
@Mod.EventHandler
public void onServerStopped(FMLServerStoppedEvent event)
{
ChunkLoadHandler.tickets.clear();
}
示例14: serverStopped
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
@Mod.EventHandler
public void serverStopped(FMLServerStoppedEvent event) {
if(FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER) {
TeleportRegistry.clear();
}
}
示例15: serverStopping
import cpw.mods.fml.common.event.FMLServerStoppedEvent; //导入依赖的package包/类
@EventHandler
public void serverStopping(FMLServerStoppedEvent event) {
if (worldConfig == null) return;
config.remove(worldConfig);
worldConfig = null;
}