/**
* 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
}
java类cpw.mods.fml.common.event.FMLServerStoppedEvent的实例源码
ExampleMod.java 文件源码
项目:Minecraft-Forge-Class-Template
阅读 25
收藏 0
点赞 0
评论 0
MCManager.java 文件源码
项目:MCManager
阅读 20
收藏 0
点赞 0
评论 0
/**
* 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.");
}
GalacticraftCore.java 文件源码
项目:4Space-5
阅读 24
收藏 0
点赞 0
评论 0
@EventHandler
public void unregisterDims(FMLServerStoppedEvent var1)
{
WorldUtil.unregisterPlanets();
WorldUtil.unregisterSpaceStations();
}
SpaceCore.java 文件源码
项目:4Space-5
阅读 24
收藏 0
点赞 0
评论 0
@EventHandler
public void unregisterDims(FMLServerStoppedEvent event) {
SpaceLog.severe("Unregister-Dims");
}
RivalRebels.java 文件源码
项目:Rival-Rebels-Mod
阅读 22
收藏 0
点赞 0
评论 0
@EventHandler
public void onServerStop(FMLServerStoppedEvent event)
{
round.save();
}
LookingGlass.java 文件源码
项目:LookingGlass
阅读 25
收藏 0
点赞 0
评论 0
@EventHandler
public void serverStop(FMLServerStoppedEvent event) {
// Shutdown our throttled packet dispatcher
ServerPacketDispatcher.getInstance().halt();
ServerPacketDispatcher.shutdown();
}
WorldGenerator.java 文件源码
项目:Structures
阅读 24
收藏 0
点赞 0
评论 0
public void serverStopped(FMLServerStoppedEvent event) {
generating.clear();
}
EnderStructures.java 文件源码
项目:Structures
阅读 20
收藏 0
点赞 0
评论 0
@EventHandler
public void serverStopped(FMLServerStoppedEvent event) {
structureGenerator.serverStopped(event);
structureRegister.serverStopped(event);
}
StructureRegister.java 文件源码
项目:Structures
阅读 18
收藏 0
点赞 0
评论 0
public void serverStopped(FMLServerStoppedEvent event) {
worldManagers.clear();
loadedStructures.clear();
}
ChunkyPeripherals.java 文件源码
项目:ChunkyPeripherals
阅读 22
收藏 0
点赞 0
评论 0
@EventHandler
public void atServerStopped(FMLServerStoppedEvent e)
{
}
DaVincing.java 文件源码
项目:DaVincing
阅读 18
收藏 0
点赞 0
评论 0
@Mod.EventHandler
public void serverStopped(final FMLServerStoppedEvent event) {
}
Framez.java 文件源码
项目:Framez
阅读 18
收藏 0
点赞 0
评论 0
@EventHandler
public void serverStop(FMLServerStoppedEvent event) {
ThreadBlockChecking.instance().onLeaveWorld();
}
ItFellFromTheSky.java 文件源码
项目:ItFellFromTheSky
阅读 19
收藏 0
点赞 0
评论 0
@Mod.EventHandler
public void onServerStopped(FMLServerStoppedEvent event)
{
ChunkLoadHandler.tickets.clear();
}
Framely.java 文件源码
项目:Framely
阅读 15
收藏 0
点赞 0
评论 0
@Mod.EventHandler
public void serverStopped(FMLServerStoppedEvent event) {
if(FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER) {
TeleportRegistry.clear();
}
}
AdvHealthOptions.java 文件源码
项目:AdvHealthOptions
阅读 21
收藏 0
点赞 0
评论 0
@EventHandler
public void serverStopping(FMLServerStoppedEvent event) {
if (worldConfig == null) return;
config.remove(worldConfig);
worldConfig = null;
}
Physis.java 文件源码
项目:ShadowsOfPhysis
阅读 23
收藏 0
点赞 0
评论 0
@Mod.EventHandler
public void serverStopped(FMLServerStoppedEvent event) {
proxy.serverStopped(event);
}
CommonProxy.java 文件源码
项目:ShadowsOfPhysis
阅读 22
收藏 0
点赞 0
评论 0
public void serverStopped(FMLServerStoppedEvent event) {
Physis.oooBuilder.stop();
}
CoreClaim.java 文件源码
项目:ClaimIO
阅读 20
收藏 0
点赞 0
评论 0
@EventHandler
public void onServerStoped(FMLServerStoppedEvent event) {
}
ATemplateMod.java 文件源码
项目:AbacusCommonsLib
阅读 21
收藏 0
点赞 0
评论 0
/**
* A public method to handle the server-side stopped functionality.<p/>
* From the {@link EventHandler} javadoc for methods using the {@link FMLServerStoppedEvent} parameter:
* <pre>
* FMLServerStoppedEvent:
* Do whatever cleanup you need once the server has shutdown.
* Generally only useful on the integrated server.
* </pre>
* @param event A Forge event handler for when the server is finishing to end.
*/
@EventHandler
abstract public void serverStopFinish(FMLServerStoppedEvent event);
IPythonMod.java 文件源码
项目:minecraft-mod-python
阅读 19
收藏 0
点赞 0
评论 0
/**
* Called when the server-stopped event occurs.
*
* *event* is the server-stopped event.
*/
public void serverStopped(FMLServerStoppedEvent event);
JavaMod.java 文件源码
项目:minecraft-mod-python
阅读 17
收藏 0
点赞 0
评论 0
/**
* Send the server-stopped event to the python mod.
*
* *event* is the server-stopped event.
*/
public void serverStopped(FMLServerStoppedEvent event) {
this.log.fine("Server stopped.");
this.pythonMod.serverStopped(event);
}
TomP2P.java 文件源码
项目:Minecraft-TomP2P
阅读 19
收藏 0
点赞 0
评论 0
/**
* Called when the Minecraft server stopped.
*
* @param event
* the event.
*/
@ServerStopped
public void serverStopped(FMLServerStoppedEvent event) {
((IServer) P2P.get(P2P.SERVER_PROVIDER)).stop();
}