public class GuiMainMenu extends GuiScreen implements GuiYesNoCallback
Modifier and Type | Field and Description |
---|---|
private ResourceLocation |
backgroundTexture |
private GuiButton |
buttonResetDemo |
private static java.util.concurrent.atomic.AtomicInteger |
field_175373_f |
private boolean |
field_175375_v |
private int |
field_92019_w |
private int |
field_92020_v |
private int |
field_92021_u |
private int |
field_92022_t |
private int |
field_92023_s |
private int |
field_92024_r |
static java.lang.String |
field_96138_a |
private static org.apache.logging.log4j.Logger |
logger |
private static ResourceLocation |
minecraftTitleTextures |
private java.lang.String |
openGLWarning1
OpenGL graphics card warning.
|
private java.lang.String |
openGLWarning2
OpenGL graphics card warning.
|
private java.lang.String |
openGLWarningLink
Link to the Mojang Support about minimum requirements
|
private int |
panoramaTimer
Timer used to rotate the panorama, increases every tick.
|
private static java.util.Random |
RANDOM |
private GuiButton |
realmsButton
Minecraft Realms button.
|
private java.lang.String |
splashText
The splash message.
|
private static ResourceLocation |
splashTexts |
private java.lang.Object |
threadLock
The Object object utilized as a thread lock when performing non thread-safe operations
|
private static ResourceLocation[] |
titlePanoramaPaths
An array of all the paths to the panorama pictures.
|
private float |
updateCounter
Counts the number of screen updates.
|
private DynamicTexture |
viewportTexture
Texture allocated for the current viewport of the main menu's panorama background.
|
allowUserInput, buttonList, fontRendererObj, height, itemRender, labelList, mc, width
icons, optionsBackground, statIcons, zLevel
Constructor and Description |
---|
GuiMainMenu() |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton button)
Called by the controls from the buttonList when activated.
|
private void |
addDemoButtons(int p_73972_1_,
int p_73972_2_)
Adds Demo buttons on Main Menu for players who are playing Demo.
|
private void |
addSingleplayerMultiplayerButtons(int p_73969_1_,
int p_73969_2_)
Adds Singleplayer and Multiplayer buttons on Main Menu for players who have bought the game.
|
void |
confirmClicked(boolean result,
int id) |
boolean |
doesGuiPauseGame()
Returns true if this GUI should pause the game when it is displayed in single-player
|
private void |
drawPanorama(int p_73970_1_,
int p_73970_2_,
float p_73970_3_)
Draws the main menu panorama
|
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks)
Draws the screen and all the components in it.
|
void |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
protected void |
keyTyped(char typedChar,
int keyCode)
Fired when a key is typed (except F11 which toggles full screen).
|
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton)
Called when the mouse is clicked.
|
private void |
renderSkybox(int p_73971_1_,
int p_73971_2_,
float p_73971_3_)
Renders the skybox in the main menu
|
private void |
rotateAndBlurSkybox(float p_73968_1_)
Rotate and blurs the skybox view in the main menu
|
private void |
switchToRealms() |
void |
updateScreen()
Called from the main game loop to update the screen.
|
drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClickMove, mouseReleased, onGuiClosed, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setText, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private static final java.util.concurrent.atomic.AtomicInteger field_175373_f
private static final org.apache.logging.log4j.Logger logger
private static final java.util.Random RANDOM
private float updateCounter
private java.lang.String splashText
private GuiButton buttonResetDemo
private int panoramaTimer
private DynamicTexture viewportTexture
private boolean field_175375_v
private final java.lang.Object threadLock
private java.lang.String openGLWarning1
private java.lang.String openGLWarning2
private java.lang.String openGLWarningLink
private static final ResourceLocation splashTexts
private static final ResourceLocation minecraftTitleTextures
private static final ResourceLocation[] titlePanoramaPaths
public static final java.lang.String field_96138_a
private int field_92024_r
private int field_92023_s
private int field_92022_t
private int field_92021_u
private int field_92020_v
private int field_92019_w
private ResourceLocation backgroundTexture
private GuiButton realmsButton
public void updateScreen()
updateScreen
in class GuiScreen
public boolean doesGuiPauseGame()
doesGuiPauseGame
in class GuiScreen
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
public void initGui()
private void addSingleplayerMultiplayerButtons(int p_73969_1_, int p_73969_2_)
private void addDemoButtons(int p_73972_1_, int p_73972_2_)
protected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed
in class GuiScreen
java.io.IOException
private void switchToRealms()
public void confirmClicked(boolean result, int id)
confirmClicked
in interface GuiYesNoCallback
confirmClicked
in class GuiScreen
private void drawPanorama(int p_73970_1_, int p_73970_2_, float p_73970_3_)
private void rotateAndBlurSkybox(float p_73968_1_)
private void renderSkybox(int p_73971_1_, int p_73971_2_, float p_73971_3_)
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiScreen
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws java.io.IOException
mouseClicked
in class GuiScreen
java.io.IOException