Java 类net.minecraftforge.fml.common.network.FMLNetworkEvent.ClientDisconnectionFromServerEvent 实例源码

项目:OreLogger    文件:Listener.java   
@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();
}
项目:Simple-Dimensions    文件:SimpleDimensions.java   
@SubscribeEvent
public void clientDisconnect(ClientDisconnectionFromServerEvent event)
{
    if (!event.getManager().isLocalChannel())
    {
        ClientHandler.getInstance().cleanUp();
    }
}
项目:DynamicSurroundings    文件:ProxyClient.java   
@Override
public void clientDisconnect(@Nonnull final ClientDisconnectionFromServerEvent event) {
    Minecraft.getMinecraft().addScheduledTask(new Runnable() {
        public void run() {
            EffectManager.unregister();
            GuiHUDHandler.unregister();
            ProxyClient.this.connectionTime = 0;
        }
    });
}
项目:TFC2    文件:PlayerTracker.java   
@SubscribeEvent
/**
 * Runs on the client
 */
public void onClientDisconnectServer(ClientDisconnectionFromServerEvent event)
{
    if(WorldGen.getInstance() != null)
    {
        WorldGen.getInstance().resetCache();
        WorldGen.ClearInstances();
        ChunkLoadHandler.loadedCentersMap.clear();
    }
}
项目:morecommands    文件:ClientHandler.java   
/**
 * 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;
}
项目:TFC2    文件:PlayerTracker.java   
@SubscribeEvent
/**
 * Runs on the client
 */
public void onClientDisconnectServer(ClientDisconnectionFromServerEvent event)
{
    if(WorldGen.getInstance() != null)
    {
        WorldGen.getInstance().resetCache();
        WorldGen.ClearInstances();
        ChunkLoadHandler.loadedCentersMap.clear();
    }
}
项目:WearableBackpacks    文件:BackpacksConfig.java   
/** 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;
}
项目:Autotip    文件:HypixelListener.java   
@SubscribeEvent
public void playerLoggedOut(ClientDisconnectionFromServerEvent event) {
    Autotip.onHypixel = false;
}
项目:mves    文件:ConfigHandler.java   
@SuppressWarnings("static-method")
@SubscribeEvent
public void onPlayerLogout(ClientDisconnectionFromServerEvent event) {
  syncConfig(false);
  configLockedByServer = false;
}
项目:TravelHut    文件:ConfigHandler.java   
@SuppressWarnings("static-method")
@SubscribeEvent
public void onPlayerLogout(ClientDisconnectionFromServerEvent event) {
  syncConfig(false);
  configLockedByServer = false;
}
项目:DynamicSurroundings    文件:DSurround.java   
@SubscribeEvent(priority = EventPriority.LOWEST)
public void clientDisconnect(@Nonnull final ClientDisconnectionFromServerEvent event) {
    proxy.clientDisconnect(event);
    installedOnServer = false;
}
项目:DynamicSurroundings    文件:Proxy.java   
public void clientDisconnect(@Nonnull final ClientDisconnectionFromServerEvent event) {
    // NOTHING SHOULD BE HERE - OVERRIDE IN ProxyClient!
}
项目:blockbuster    文件:KeyboardHandler.java   
@SubscribeEvent
public void onUserLogOut(ClientDisconnectionFromServerEvent event)
{
    ClientProxy.manager.reset();
    ClientProxy.recordingOverlay.setVisible(false);
}
项目:Factorization    文件:HammerClientProxy.java   
@SubscribeEvent
public void onClientLogout(ClientDisconnectionFromServerEvent event) {
    cleanupClientWorld();
}
项目:CivRadar    文件:CivRadar.java   
@SubscribeEvent
public void onDisconnect(ClientDisconnectionFromServerEvent event) {
    currentServer = "";
}
项目:EnderIO    文件:ClientDatabaseManager.java   
@SubscribeEvent
public void on(ClientDisconnectionFromServerEvent event) {
  Log.info("Clearing Inventory Panel Client Database");
  dbRegistry.clear();
}
项目:EnderIO    文件:ValueFactory.java   
@SubscribeEvent
public void onPlayerLogout(final ClientDisconnectionFromServerEvent event) {
  Log.info("Removed server config override for mod " + modid);
  serverConfig = null;
  generation++;
}
项目:EnderIO    文件:ConnectionHandler.java   
@SubscribeEvent
public void onDisconnectedFromServer(ClientDisconnectionFromServerEvent evt) {
  ClientChannelRegister.instance.reset();
}