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


Java GuiMemoryErrorScreen类代码示例

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


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

示例1: run

import net.minecraft.client.gui.GuiMemoryErrorScreen; //导入依赖的package包/类
public void run()
{
    this.running = true;

    try
    {
        this.startGame();
    }
    catch (Throwable throwable)
    {
        CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Initializing game");
        crashreport.makeCategory("Initialization");
        this.displayCrashReport(this.addGraphicsAndWorldToCrashReport(crashreport));
        return;
    }

    while (true)
    {
        try
        {
            while (this.running)
            {
                if (!this.hasCrashed || this.crashReporter == null)
                {
                    try
                    {
                        this.runGameLoop();
                    }
                    catch (OutOfMemoryError var10)
                    {
                        this.freeMemory();
                        this.displayGuiScreen(new GuiMemoryErrorScreen());
                        System.gc();
                    }
                }
                else
                {
                    this.displayCrashReport(this.crashReporter);
                }
            }
        }
        catch (MinecraftError var12)
        {
            break;
        }
        catch (ReportedException reportedexception)
        {
            this.addGraphicsAndWorldToCrashReport(reportedexception.getCrashReport());
            this.freeMemory();
            logger.fatal((String)"Reported exception thrown!", (Throwable)reportedexception);
            this.displayCrashReport(reportedexception.getCrashReport());
            break;
        }
        catch (Throwable throwable1)
        {
            CrashReport crashreport1 = this.addGraphicsAndWorldToCrashReport(new CrashReport("Unexpected error", throwable1));
            this.freeMemory();
            logger.fatal("Unreported exception thrown!", throwable1);
            this.displayCrashReport(crashreport1);
            break;
        }
        finally
        {
            this.shutdownMinecraftApplet();
        }

        return;
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:70,代码来源:Minecraft.java

示例2: run

import net.minecraft.client.gui.GuiMemoryErrorScreen; //导入依赖的package包/类
public void run()
{
    this.running = true;

    try
    {
        this.startGame();
        Client.init();
    }
    catch (Throwable throwable)
    {
        CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Initializing game");
        crashreport.makeCategory("Initialization");
        this.displayCrashReport(this.addGraphicsAndWorldToCrashReport(crashreport));
        return;
    }

    while (true)
    {
        try
        {
            while (this.running)
            {
                if (!this.hasCrashed || this.crashReporter == null)
                {
                    try
                    {
                        this.runGameLoop();
                    }
                    catch (OutOfMemoryError var10)
                    {
                        this.freeMemory();
                        this.displayGuiScreen(new GuiMemoryErrorScreen());
                        System.gc();
                    }
                }
                else
                {
                    this.displayCrashReport(this.crashReporter);
                }
            }
        }
        catch (MinecraftError var12)
        {
            break;
        }
        catch (ReportedException reportedexception)
        {
            this.addGraphicsAndWorldToCrashReport(reportedexception.getCrashReport());
            this.freeMemory();
            logger.fatal((String)"Reported exception thrown!", (Throwable)reportedexception);
            this.displayCrashReport(reportedexception.getCrashReport());
            break;
        }
        catch (Throwable throwable1)
        {
            CrashReport crashreport1 = this.addGraphicsAndWorldToCrashReport(new CrashReport("Unexpected error", throwable1));
            this.freeMemory();
            logger.fatal("Unreported exception thrown!", throwable1);
            this.displayCrashReport(crashreport1);
            break;
        }
        finally
        {
            this.shutdownMinecraftApplet();
        }

        return;
    }
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:71,代码来源:Minecraft.java

示例3: run

import net.minecraft.client.gui.GuiMemoryErrorScreen; //导入依赖的package包/类
public void run() {
	this.running = true;

	try {
		this.startGame();
	} catch (Throwable throwable) {
		CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Initializing game");
		crashreport.makeCategory("Initialization");
		this.displayCrashReport(this.addGraphicsAndWorldToCrashReport(crashreport));
		return;
	}

	while (true) {
		try {
			while (this.running) {
				if (!this.hasCrashed || this.crashReporter == null) {
					try {
						this.runGameLoop();
					} catch (OutOfMemoryError var10) {
						this.freeMemory();
						this.displayGuiScreen(new GuiMemoryErrorScreen());
						System.gc();
					}
				} else {
					this.displayCrashReport(this.crashReporter);
				}
			}
		} catch (MinecraftError var12) {
			break;
		} catch (ReportedException reportedexception) {
			this.addGraphicsAndWorldToCrashReport(reportedexception.getCrashReport());
			this.freeMemory();
			logger.fatal((String) "Reported exception thrown!", (Throwable) reportedexception);
			this.displayCrashReport(reportedexception.getCrashReport());
			break;
		} catch (Throwable throwable1) {
			CrashReport crashreport1 = this
					.addGraphicsAndWorldToCrashReport(new CrashReport("Unexpected error", throwable1));
			this.freeMemory();
			logger.fatal("Unreported exception thrown!", throwable1);
			this.displayCrashReport(crashreport1);
			break;
		} finally {
			this.shutdownMinecraftApplet();
		}

		return;
	}
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:50,代码来源:Minecraft.java

示例4: run

import net.minecraft.client.gui.GuiMemoryErrorScreen; //导入依赖的package包/类
public void run()
{
    this.running = true;

    try
    {
        this.startGame();
    }
    catch (Throwable throwable)
    {
        CrashReport crashreport = CrashReport.makeCrashReport(throwable, "Initializing game");
        crashreport.makeCategory("Initialization");
        this.displayCrashReport(this.addGraphicsAndWorldToCrashReport(crashreport));
        return;
    }

    while (true)
    {
        try
        {
            while (this.running)
            {
                if (!this.hasCrashed || this.crashReporter == null)
                {
                    try
                    {
                        this.runGameLoop();
                    }
                    catch (OutOfMemoryError var10)
                    {
                        this.freeMemory();
                        this.displayGuiScreen(new GuiMemoryErrorScreen());
                        System.gc();
                    }
                }
                else
                {
                    this.displayCrashReport(this.crashReporter);
                }
            }
        }
        catch (MinecraftError var12)
        {
            break;
        }
        catch (ReportedException reportedexception)
        {
            this.addGraphicsAndWorldToCrashReport(reportedexception.getCrashReport());
            this.freeMemory();
            LOGGER.fatal((String)"Reported exception thrown!", (Throwable)reportedexception);
            this.displayCrashReport(reportedexception.getCrashReport());
            break;
        }
        catch (Throwable throwable1)
        {
            CrashReport crashreport1 = this.addGraphicsAndWorldToCrashReport(new CrashReport("Unexpected error", throwable1));
            this.freeMemory();
            LOGGER.fatal("Unreported exception thrown!", throwable1);
            this.displayCrashReport(crashreport1);
            break;
        }
        finally
        {
            this.shutdownMinecraftApplet();
        }

        return;
    }
}
 
开发者ID:NSExceptional,项目名称:Zombe-Modpack,代码行数:70,代码来源:Minecraft.java

示例5: run

import net.minecraft.client.gui.GuiMemoryErrorScreen; //导入依赖的package包/类
public void run()
{
    this.running = true;
    CrashReport var2;

    try
    {
        this.startGame();
    }
    catch (Throwable var11)
    {
        var2 = CrashReport.makeCrashReport(var11, "Initializing game");
        var2.makeCategory("Initialization");
        this.displayCrashReport(this.addGraphicsAndWorldToCrashReport(var2));
        return;
    }

    while (true)
    {
        try
        {
            while (this.running)
            {
                if (!this.hasCrashed || this.crashReporter == null)
                {
                    try
                    {
                        this.runGameLoop();
                    }
                    catch (OutOfMemoryError var10)
                    {
                        this.freeMemory();
                        this.displayGuiScreen(new GuiMemoryErrorScreen());
                        System.gc();
                    }

                    continue;
                }

                this.displayCrashReport(this.crashReporter);
                return;
            }
        }
        catch (MinecraftError var12)
        {
            ;
        }
        catch (ReportedException var13)
        {
            this.addGraphicsAndWorldToCrashReport(var13.getCrashReport());
            this.freeMemory();
            logger.fatal("Reported exception thrown!", var13);
            this.displayCrashReport(var13.getCrashReport());
        }
        catch (Throwable var14)
        {
            var2 = this.addGraphicsAndWorldToCrashReport(new CrashReport("Unexpected error", var14));
            this.freeMemory();
            logger.fatal("Unreported exception thrown!", var14);
            this.displayCrashReport(var2);
        }
        finally
        {
            this.shutdownMinecraftApplet();
        }

        return;
    }
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:70,代码来源:Minecraft.java

示例6: run

import net.minecraft.client.gui.GuiMemoryErrorScreen; //导入依赖的package包/类
public void run()
{
    this.running = true;
    CrashReport crashreport;

    try
    {
        this.startGame();
    }
    catch (Throwable throwable)
    {
        crashreport = CrashReport.makeCrashReport(throwable, "Initializing game");
        crashreport.makeCategory("Initialization");
        this.displayCrashReport(this.addGraphicsAndWorldToCrashReport(crashreport));
        return;
    }

    while (true)
    {
        try
        {
            while (this.running)
            {
                if (!this.hasCrashed || this.crashReporter == null)
                {
                    try
                    {
                        this.runGameLoop();
                    }
                    catch (OutOfMemoryError outofmemoryerror)
                    {
                        this.freeMemory();
                        this.displayGuiScreen(new GuiMemoryErrorScreen());
                        System.gc();
                    }

                    continue;
                }

                this.displayCrashReport(this.crashReporter);
            }
        }
        catch (MinecraftError minecrafterror)
        {
            break;
        }
        catch (ReportedException reportedexception)
        {
            this.addGraphicsAndWorldToCrashReport(reportedexception.getCrashReport());
            this.freeMemory();
            logger.fatal("Reported exception thrown!", reportedexception);
            this.displayCrashReport(reportedexception.getCrashReport());
            break;
        }
        catch (Throwable throwable1)
        {
            crashreport = this.addGraphicsAndWorldToCrashReport(new CrashReport("Unexpected error", throwable1));
            this.freeMemory();
            logger.fatal("Unreported exception thrown!", throwable1);
            this.displayCrashReport(crashreport);
            break;
        }
        finally
        {
            this.shutdownMinecraftApplet();
        }

        return;
    }
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:71,代码来源:Minecraft.java

示例7: func_99999_d

import net.minecraft.client.gui.GuiMemoryErrorScreen; //导入依赖的package包/类
public void func_99999_d() {
   this.field_71425_J = true;

   CrashReport var2;
   try {
      this.func_71384_a();
   } catch (Throwable var11) {
      var2 = CrashReport.func_85055_a(var11, "Initializing game");
      var2.func_85058_a("Initialization");
      this.func_71377_b(this.func_71396_d(var2));
      return;
   }

   while(true) {
      try {
         if(this.field_71425_J) {
            if(this.field_71434_R && this.field_71433_S != null) {
               this.func_71377_b(this.field_71433_S);
               return;
            }

            if(this.field_71468_ad) {
               this.field_71468_ad = false;
               this.func_110436_a();
            }

            try {
               this.func_71411_J();
            } catch (OutOfMemoryError var10) {
               this.func_71398_f();
               this.func_71373_a(new GuiMemoryErrorScreen());
               System.gc();
            }
            continue;
         }
      } catch (MinecraftError var12) {
         ;
      } catch (ReportedException var13) {
         this.func_71396_d(var13.func_71575_a());
         this.func_71398_f();
         var13.printStackTrace();
         this.func_71377_b(var13.func_71575_a());
      } catch (Throwable var14) {
         var2 = this.func_71396_d(new CrashReport("Unexpected error", var14));
         this.func_71398_f();
         var14.printStackTrace();
         this.func_71377_b(var2);
      } finally {
         this.func_71405_e();
      }

      return;
   }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:55,代码来源:Minecraft.java

示例8: run

import net.minecraft.client.gui.GuiMemoryErrorScreen; //导入依赖的package包/类
public void run()
{
    this.running = true;
    CrashReport crashreport;

    try
    {
        this.startGame();
    }
    catch (Throwable throwable)
    {
        crashreport = CrashReport.makeCrashReport(throwable, "Initializing game");
        crashreport.makeCategory("Initialization");
        this.displayCrashReport(this.addGraphicsAndWorldToCrashReport(crashreport));
        return;
    }

    try
    {
        while (this.running)
        {
            if (this.running)
            {
                if (this.hasCrashed && this.crashReporter != null)
                {
                    this.displayCrashReport(this.crashReporter);
                    return;
                }

                if (this.refreshTexturePacksScheduled)
                {
                    this.refreshTexturePacksScheduled = false;
                    this.refreshResources();
                }

                try
                {
                    this.runGameLoop();
                }
                catch (OutOfMemoryError outofmemoryerror)
                {
                    this.freeMemory();
                    this.displayGuiScreen(new GuiMemoryErrorScreen());
                    System.gc();
                }

                continue;
            }
        }
    }
    catch (MinecraftError minecrafterror)
    {
    }
    catch (ReportedException reportedexception)
    {
        this.addGraphicsAndWorldToCrashReport(reportedexception.getCrashReport());
        this.freeMemory();
        reportedexception.printStackTrace();
        this.displayCrashReport(reportedexception.getCrashReport());
    }
    catch (Throwable throwable1)
    {
        crashreport = this.addGraphicsAndWorldToCrashReport(new CrashReport("Unexpected error", throwable1));
        this.freeMemory();
        throwable1.printStackTrace();
        this.displayCrashReport(crashreport);
    }
    finally
    {
        this.shutdownMinecraftApplet();
    }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:74,代码来源:Minecraft.java


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