Java 类cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent 实例源码

项目:amunra    文件:ConnectionEvents.java   
@SubscribeEvent
public void onConnectionClosed(ClientDisconnectionFromServerEvent event)
{
    if (clientConnected)
    {
        clientConnected = false;
        // unregister motherships here
        if(TickHandlerServer.mothershipData != null) {
            TickHandlerServer.mothershipData.unregisterAllMotherships();
            TickHandlerServer.mothershipData = null;
        }
        /*
        WorldUtil.unregisterPlanets();
        WorldUtil.unregisterSpaceStations();
        ConfigManagerCore.restoreClientConfigOverrideable();
        */
    }
}
项目:4Space-5    文件:ConnectionEvents.java   
@SubscribeEvent
public void onConnectionClosed(ClientDisconnectionFromServerEvent event)
{
    if (ConnectionEvents.clientConnected)
    {
        ConnectionEvents.clientConnected = false;
        WorldUtil.unregisterPlanets();
        WorldUtil.unregisterSpaceStations();
        ConfigManagerCore.restoreClientConfigOverrideable();
    }
}
项目:VivecraftForgeExtensions    文件:HandlerClientTick.java   
@SubscribeEvent
public void onClientDisconnect(ClientDisconnectionFromServerEvent event) {
    ProxyClient.isVFEServer = false;
    ProxyClient.reverseHandsLast = false;
    ProxyClient.worldScaleLast = 0;
    ProxyClient.seatedLast = false;
    ProxyClient.vrPlayerIds.clear();
}
项目:LambdaLib    文件:ControlOverrider.java   
@SubscribeEvent
public void onDisconnect(ClientDisconnectionFromServerEvent evt) {
    if (SideHelper.isClient()) {
        clearInternal();
        endCompleteOverride();
        overrideGroups.clear();
    }
}
项目:LambdaLib    文件:LIFMLGameEventDispatcher.java   
@SubscribeEvent
    public void onClientDisconnectionFromServer(ClientDisconnectionFromServerEvent event) {
        // FIXME some of these shouldn't be cleared, we might need to treat them differently
//        hMouseInput.clear();
//        addMouseInput.clear();
//        hKeyInput.clear();
//        addKeyInput.clear();
//        hItemPickup.clear();
//        addItemPickup.clear();
//        hItemCrafted.clear();
//        addItemCrafted.clear();
//        hItemSmelted.clear();
//        addItemSmelted.clear();
//        hPlayerLoggedIn.clear();
//        addPlayerLoggedIn.clear();
//        hPlayerLoggedOut.clear();
//        addPlayerLoggedOut.clear();
//        hPlayerRespawn.clear();
//        addPlayerRespawn.clear();
//        hPlayerChangedDimension.clear();
//        addPlayerChangedDimension.clear();
//        hServerTick.clear();
//        addServerTick.clear();
//        hClientTick.clear();
//        addClientTick.clear();
//        hWorldTick.clear();
//        addWorldTick.clear();
//        hPlayerTick.clear();
//        addPlayerTick.clear();
//        hRenderTick.clear();
//        addRenderTick.clear();
    }
项目:LambdaLib    文件:AuxGuiHandler.java   
@SubscribeEvent
public void disconnected(ClientDisconnectionFromServerEvent event) {
    startIterating();
    Iterator<AuxGui> iter = auxGuiList.iterator();
    while(iter.hasNext()) {
        AuxGui gui = iter.next();
        if(!gui.isConsistent()) {
            gui.onDisposed();
            iter.remove();
        }
    }
    endIterating();
}
项目:LookingGlass    文件:LookingGlassEventHandler.java   
@SubscribeEvent
public void onClientDisconnect(ClientDisconnectionFromServerEvent event) {
    // Abandon ship!
    ProxyWorldManager.clearProxyworlds();
}
项目:LambdaLib    文件:Future.java   
@SubscribeEvent
public void __onClientDisconnect(ClientDisconnectionFromServerEvent evt) {
    disconnect();
}
项目:EnderCore    文件:ConfigProcessor.java   
@SubscribeEvent
public void onPlayerLogout(ClientDisconnectionFromServerEvent event) {
  syncTo(originalValues);
  EnderCore.logger.info("Reset configs to client values for {}", configs.getName());
}
项目:AdvancedRocketry    文件:PlanetEventHandler.java   
@EventHandler
public void disconnected(ClientDisconnectionFromServerEvent event) {
    zmaster587.advancedRocketry.dimension.DimensionManager.getInstance().unregisterAllDimensions();
}
项目:EnderIOAddons    文件:ConfigHandler.java   
@SuppressWarnings("static-method")
@SubscribeEvent
public void onPlayerLogout(@SuppressWarnings("unused") ClientDisconnectionFromServerEvent event) {
  syncConfig(false);
  configLockedByServer = false;
}
项目:copycore    文件:ClientProxy.java   
@SubscribeEvent
public void onClientDisconnected(ClientDisconnectionFromServerEvent event) {
    // Clear synced config values on disconnect.
    SyncedConfig.resetAllConfigs();
}
项目:mcpvp-mod    文件:HandleDisconnect.java   
public static void onDisconnect(@SuppressWarnings("unused") ClientDisconnectionFromServerEvent event) {
    ServerHelper.currentIP = "";
}
项目:mcpvp-mod    文件:Events.java   
@SubscribeEvent
public void onDisconnect(ClientDisconnectionFromServerEvent event) {
    HandleDisconnect.onDisconnect(event);
}
项目:SimplyJetpacks    文件:SyncHandler.java   
@SubscribeEvent
public void onClientDisconnectedFromServer(ClientDisconnectionFromServerEvent evt) {
    SoundJetpack.clearPlayingFor();
    Config.onConfigChanged(SimplyJetpacks.MODID);
}
项目:OpenPeripheral-Addons    文件:TerminalManagerClient.java   
@SubscribeEvent
public void onDisconnect(ClientDisconnectionFromServerEvent evt) {
    surfaces.clear();
}