MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / createDisplay

Method createDisplay

src/main/java/net/minecraft/client/Minecraft.java:604–633  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

602 }
603
604 private void createDisplay() throws LWJGLException
605 {
606 Display.setResizable(true);
607 Display.setTitle("Loading " + Slack.getInstance().getInfo().getName() + " " + Slack.getInstance().getInfo().getVersion() + " (" + Slack.getInstance().getInfo().getType() + ") ");
608
609 try
610 {
611 Display.create((new PixelFormat()).withDepthBits(24));
612 }
613 catch (LWJGLException lwjglexception)
614 {
615 logger.error("Couldn\'t set pixel format", lwjglexception);
616
617 try
618 {
619 Thread.sleep(1000L);
620 }
621 catch (InterruptedException var3)
622 {
623 ;
624 }
625
626 if (this.fullscreen)
627 {
628 this.updateDisplayMode();
629 }
630
631 Display.create();
632 }
633 }
634
635 private void setInitialDisplayMode() throws LWJGLException
636 {

Callers 1

startGameMethod · 0.95

Calls 8

updateDisplayModeMethod · 0.95
sleepMethod · 0.80
getNameMethod · 0.65
getTypeMethod · 0.65
getInstanceMethod · 0.45
getVersionMethod · 0.45
createMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected