• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ClientDisconnectionFromServerEvent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent的典型用法代码示例。如果您正苦于以下问题:Java ClientDisconnectionFromServerEvent类的具体用法?Java ClientDisconnectionFromServerEvent怎么用?Java ClientDisconnectionFromServerEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ClientDisconnectionFromServerEvent类属于cpw.mods.fml.common.network.FMLNetworkEvent包,在下文中一共展示了ClientDisconnectionFromServerEvent类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onConnectionClosed

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@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();
        */
    }
}
 
开发者ID:katzenpapst,项目名称:amunra,代码行数:19,代码来源:ConnectionEvents.java


示例2: onConnectionClosed

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void onConnectionClosed(ClientDisconnectionFromServerEvent event)
{
    if (ConnectionEvents.clientConnected)
    {
        ConnectionEvents.clientConnected = false;
        WorldUtil.unregisterPlanets();
        WorldUtil.unregisterSpaceStations();
        ConfigManagerCore.restoreClientConfigOverrideable();
    }
}
 
开发者ID:4Space,项目名称:4Space-5,代码行数:12,代码来源:ConnectionEvents.java


示例3: onClientDisconnect

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void onClientDisconnect(ClientDisconnectionFromServerEvent event) {
	ProxyClient.isVFEServer = false;
	ProxyClient.reverseHandsLast = false;
	ProxyClient.worldScaleLast = 0;
	ProxyClient.seatedLast = false;
	ProxyClient.vrPlayerIds.clear();
}
 
开发者ID:Techjar,项目名称:VivecraftForgeExtensions,代码行数:9,代码来源:HandlerClientTick.java


示例4: onDisconnect

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void onDisconnect(ClientDisconnectionFromServerEvent evt) {
    if (SideHelper.isClient()) {
        clearInternal();
        endCompleteOverride();
        overrideGroups.clear();
    }
}
 
开发者ID:LambdaInnovation,项目名称:LambdaLib,代码行数:9,代码来源:ControlOverrider.java


示例5: onClientDisconnectionFromServer

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@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();
    }
 
开发者ID:LambdaInnovation,项目名称:LambdaLib,代码行数:33,代码来源:LIFMLGameEventDispatcher.java


示例6: disconnected

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@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();
}
 
开发者ID:LambdaInnovation,项目名称:LambdaLib,代码行数:14,代码来源:AuxGuiHandler.java


示例7: onClientDisconnect

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void onClientDisconnect(ClientDisconnectionFromServerEvent event) {
	// Abandon ship!
	ProxyWorldManager.clearProxyworlds();
}
 
开发者ID:XCompWiz,项目名称:LookingGlass,代码行数:6,代码来源:LookingGlassEventHandler.java


示例8: __onClientDisconnect

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void __onClientDisconnect(ClientDisconnectionFromServerEvent evt) {
    disconnect();
}
 
开发者ID:LambdaInnovation,项目名称:LambdaLib,代码行数:5,代码来源:Future.java


示例9: onPlayerLogout

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void onPlayerLogout(ClientDisconnectionFromServerEvent event) {
  syncTo(originalValues);
  EnderCore.logger.info("Reset configs to client values for {}", configs.getName());
}
 
开发者ID:SleepyTrousers,项目名称:EnderCore,代码行数:6,代码来源:ConfigProcessor.java


示例10: disconnected

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@EventHandler
public void disconnected(ClientDisconnectionFromServerEvent event) {
	zmaster587.advancedRocketry.dimension.DimensionManager.getInstance().unregisterAllDimensions();
}
 
开发者ID:zmaster587,项目名称:AdvancedRocketry,代码行数:5,代码来源:PlanetEventHandler.java


示例11: onPlayerLogout

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SuppressWarnings("static-method")
@SubscribeEvent
public void onPlayerLogout(@SuppressWarnings("unused") ClientDisconnectionFromServerEvent event) {
  syncConfig(false);
  configLockedByServer = false;
}
 
开发者ID:HenryLoenwind,项目名称:EnderIOAddons,代码行数:7,代码来源:ConfigHandler.java


示例12: onClientDisconnected

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void onClientDisconnected(ClientDisconnectionFromServerEvent event) {
	// Clear synced config values on disconnect.
	SyncedConfig.resetAllConfigs();
}
 
开发者ID:copygirl,项目名称:copycore,代码行数:6,代码来源:ClientProxy.java


示例13: onDisconnect

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
public static void onDisconnect(@SuppressWarnings("unused") ClientDisconnectionFromServerEvent event) {
	ServerHelper.currentIP = "";
}
 
开发者ID:NomNuggetNom,项目名称:mcpvp-mod,代码行数:4,代码来源:HandleDisconnect.java


示例14: onDisconnect

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void onDisconnect(ClientDisconnectionFromServerEvent event) {
	HandleDisconnect.onDisconnect(event);
}
 
开发者ID:NomNuggetNom,项目名称:mcpvp-mod,代码行数:5,代码来源:Events.java


示例15: onClientDisconnectedFromServer

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void onClientDisconnectedFromServer(ClientDisconnectionFromServerEvent evt) {
    SoundJetpack.clearPlayingFor();
    Config.onConfigChanged(SimplyJetpacks.MODID);
}
 
开发者ID:Tonius,项目名称:SimplyJetpacks,代码行数:6,代码来源:SyncHandler.java


示例16: onDisconnect

import cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void onDisconnect(ClientDisconnectionFromServerEvent evt) {
	surfaces.clear();
}
 
开发者ID:OpenMods,项目名称:OpenPeripheral-Addons,代码行数:5,代码来源:TerminalManagerClient.java



注:本文中的cpw.mods.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ChannelProgressiveFuture类代码示例发布时间:2022-05-21
下一篇:
Java ClassResource类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap