Java 类cpw.mods.fml.common.event.FMLServerStoppedEvent 实例源码

项目:Minecraft-Forge-Class-Template    文件:ExampleMod.java   
/**
 * 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
}
项目:MCManager    文件:MCManager.java   
/**
 * 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.");
}
项目:4Space-5    文件:GalacticraftCore.java   
@EventHandler
public void unregisterDims(FMLServerStoppedEvent var1)
{
    WorldUtil.unregisterPlanets();
    WorldUtil.unregisterSpaceStations();
}
项目:4Space-5    文件:SpaceCore.java   
@EventHandler
  public void unregisterDims(FMLServerStoppedEvent event) {
SpaceLog.severe("Unregister-Dims");
  }
项目:Rival-Rebels-Mod    文件:RivalRebels.java   
@EventHandler
public void onServerStop(FMLServerStoppedEvent event)
{
    round.save();
}
项目:LookingGlass    文件:LookingGlass.java   
@EventHandler
public void serverStop(FMLServerStoppedEvent event) {
    // Shutdown our throttled packet dispatcher
    ServerPacketDispatcher.getInstance().halt();
    ServerPacketDispatcher.shutdown();
}
项目:Structures    文件:WorldGenerator.java   
public void serverStopped(FMLServerStoppedEvent event) {
  generating.clear();
}
项目:Structures    文件:EnderStructures.java   
@EventHandler
public void serverStopped(FMLServerStoppedEvent event) {
  structureGenerator.serverStopped(event);
  structureRegister.serverStopped(event);
}
项目:Structures    文件:StructureRegister.java   
public void serverStopped(FMLServerStoppedEvent event) {
  worldManagers.clear();
  loadedStructures.clear();
}
项目:ChunkyPeripherals    文件:ChunkyPeripherals.java   
@EventHandler
public void atServerStopped(FMLServerStoppedEvent e)
{

}
项目:DaVincing    文件:DaVincing.java   
@Mod.EventHandler
public void serverStopped(final FMLServerStoppedEvent event) {
}
项目:Framez    文件:Framez.java   
@EventHandler
public void serverStop(FMLServerStoppedEvent event) {

    ThreadBlockChecking.instance().onLeaveWorld();
}
项目:ItFellFromTheSky    文件:ItFellFromTheSky.java   
@Mod.EventHandler
public  void onServerStopped(FMLServerStoppedEvent event)
{
    ChunkLoadHandler.tickets.clear();
}
项目:Framely    文件:Framely.java   
@Mod.EventHandler
public void serverStopped(FMLServerStoppedEvent event) {
    if(FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER) {
        TeleportRegistry.clear();
    }
}
项目:AdvHealthOptions    文件:AdvHealthOptions.java   
@EventHandler
public void serverStopping(FMLServerStoppedEvent event) {
    if (worldConfig == null) return;
    config.remove(worldConfig);
    worldConfig = null;
}
项目:ShadowsOfPhysis    文件:Physis.java   
@Mod.EventHandler
public void serverStopped(FMLServerStoppedEvent event) {
    proxy.serverStopped(event);
}
项目:ShadowsOfPhysis    文件:CommonProxy.java   
public void serverStopped(FMLServerStoppedEvent event) {
    Physis.oooBuilder.stop();
}
项目:ClaimIO    文件:CoreClaim.java   
@EventHandler
public void onServerStoped(FMLServerStoppedEvent event) {

}
项目:AbacusCommonsLib    文件:ATemplateMod.java   
/**
 * 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);
项目:minecraft-mod-python    文件:IPythonMod.java   
/**
 * Called when the server-stopped event occurs.
 *
 * *event* is the server-stopped event.
 */
public void serverStopped(FMLServerStoppedEvent event);
项目:minecraft-mod-python    文件:JavaMod.java   
/**
 * 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);
}
项目:Minecraft-TomP2P    文件:TomP2P.java   
/**
 * Called when the Minecraft server stopped.
 * 
 * @param event
 *            the event.
 */
@ServerStopped
public void serverStopped(FMLServerStoppedEvent event) {
    ((IServer) P2P.get(P2P.SERVER_PROVIDER)).stop();
}