当前位置: 首页>>代码示例>>Java>>正文


Java ClientDisconnectionFromServerEvent类代码示例

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


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

示例1: onDisconnect

import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void onDisconnect(ClientDisconnectionFromServerEvent event) {
	// write out all pending logs
	OreLogger.instance.getLogger().pollAndWrite();
	// reset save file so a new one is created if the player connects again
	OreLogger.instance.getLogger().resetSaveFile();
}
 
开发者ID:Maxopoly,项目名称:OreLogger,代码行数:8,代码来源:Listener.java

示例2: clientDisconnect

import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void clientDisconnect(ClientDisconnectionFromServerEvent event)
{
	if (!event.getManager().isLocalChannel())
	{
		ClientHandler.getInstance().cleanUp();
	}
}
 
开发者ID:lumien231,项目名称:Simple-Dimensions,代码行数:9,代码来源:SimpleDimensions.java

示例3: clientDisconnect

import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@Override
public void clientDisconnect(@Nonnull final ClientDisconnectionFromServerEvent event) {
	Minecraft.getMinecraft().addScheduledTask(new Runnable() {
		public void run() {
			EffectManager.unregister();
			GuiHUDHandler.unregister();
			ProxyClient.this.connectionTime = 0;
		}
	});
}
 
开发者ID:OreCruncher,项目名称:DynamicSurroundings,代码行数:11,代码来源:ProxyClient.java

示例4: onClientDisconnectServer

import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
/**
 * Runs on the client
 */
public void onClientDisconnectServer(ClientDisconnectionFromServerEvent event)
{
	if(WorldGen.getInstance() != null)
	{
		WorldGen.getInstance().resetCache();
		WorldGen.ClearInstances();
		ChunkLoadHandler.loadedCentersMap.clear();
	}
}
 
开发者ID:Deadrik,项目名称:TFC2,代码行数:14,代码来源:PlayerTracker.java

示例5: playerDisconnect

import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
/**
 * Does cleanup stuff on disconnect from a server
 */
@SubscribeEvent
public void playerDisconnect(ClientDisconnectionFromServerEvent event) {
	AppliedPatches patches = PatchManager.instance().getGlobalAppliedPatches();
	
	patches.setPatchSuccessfullyApplied(PatchList.SERVER_MODDED, false);
	patches.setPatchSuccessfullyApplied(PatchList.HANDSHAKE_FINISHED, false);
	PacketHandlerClient.reregisterAndClearRemovedCmds();
	
	MoreCommands.getProxy().playerNotified = false;
	
	MoreCommandsConfig.enablePlayerAliases = MoreCommandsConfig.enablePlayerAliasesOriginal;
	MoreCommandsConfig.enablePlayerVars = MoreCommandsConfig.enablePlayerVarsOriginal;
}
 
开发者ID:MrNobody98,项目名称:morecommands,代码行数:17,代码来源:ClientHandler.java

示例6: onDisconnectedFromServer

import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
/** Resets all synced values of the settings after disconnecting. */
@SideOnly(Side.CLIENT)
@SubscribeEvent
public void onDisconnectedFromServer(ClientDisconnectionFromServerEvent event) {
	if (!_connected) return;
	getSettings().forEach(Setting::resetSynced);
	_connected = false;
}
 
开发者ID:copygirl,项目名称:WearableBackpacks,代码行数:9,代码来源:BackpacksConfig.java

示例7: playerLoggedOut

import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void playerLoggedOut(ClientDisconnectionFromServerEvent event) {
    Autotip.onHypixel = false;
}
 
开发者ID:Semx11,项目名称:Autotip,代码行数:5,代码来源:HypixelListener.java

示例8: onPlayerLogout

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

示例9: clientDisconnect

import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent(priority = EventPriority.LOWEST)
public void clientDisconnect(@Nonnull final ClientDisconnectionFromServerEvent event) {
	proxy.clientDisconnect(event);
	installedOnServer = false;
}
 
开发者ID:OreCruncher,项目名称:DynamicSurroundings,代码行数:6,代码来源:DSurround.java

示例10: clientDisconnect

import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
public void clientDisconnect(@Nonnull final ClientDisconnectionFromServerEvent event) {
	// NOTHING SHOULD BE HERE - OVERRIDE IN ProxyClient!
}
 
开发者ID:OreCruncher,项目名称:DynamicSurroundings,代码行数:4,代码来源:Proxy.java

示例11: onUserLogOut

import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void onUserLogOut(ClientDisconnectionFromServerEvent event)
{
    ClientProxy.manager.reset();
    ClientProxy.recordingOverlay.setVisible(false);
}
 
开发者ID:mchorse,项目名称:blockbuster,代码行数:7,代码来源:KeyboardHandler.java

示例12: onClientLogout

import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void onClientLogout(ClientDisconnectionFromServerEvent event) {
    cleanupClientWorld();
}
 
开发者ID:purpleposeidon,项目名称:Factorization,代码行数:5,代码来源:HammerClientProxy.java

示例13: onDisconnect

import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void onDisconnect(ClientDisconnectionFromServerEvent event) {
	currentServer = "";
}
 
开发者ID:TealNerd,项目名称:CivRadar,代码行数:5,代码来源:CivRadar.java

示例14: on

import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void on(ClientDisconnectionFromServerEvent event) {
  Log.info("Clearing Inventory Panel Client Database");
  dbRegistry.clear();
}
 
开发者ID:SleepyTrousers,项目名称:EnderIO,代码行数:6,代码来源:ClientDatabaseManager.java

示例15: onPlayerLogout

import net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent; //导入依赖的package包/类
@SubscribeEvent
public void onPlayerLogout(final ClientDisconnectionFromServerEvent event) {
  Log.info("Removed server config override for mod " + modid);
  serverConfig = null;
  generation++;
}
 
开发者ID:SleepyTrousers,项目名称:EnderIO,代码行数:7,代码来源:ValueFactory.java


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