本文整理汇总了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;未经允许,请勿转载。 |
请发表评论