public class GuiScreenResourcePacks extends GuiScreen
allowUserInput, buttonList, fontRendererObj, height, itemRender, keyHandled, labelList, mc, mouseHandled, widthICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description |
|---|
GuiScreenResourcePacks(GuiScreen parentScreenIn) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(GuiButton button)
Called by the controls from the buttonList when activated.
|
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks)
Draws the screen and all the components in it.
|
java.util.List<ResourcePackListEntry> |
getAvailableResourcePacks()
Returns a list containing the available resource packs
|
java.util.List<ResourcePackListEntry> |
getListContaining(ResourcePackListEntry resourcePackEntry)
Returns the list containing the resource pack entry, returns the selected list if it is selected, otherwise
returns the available list
|
java.util.List<ResourcePackListEntry> |
getSelectedResourcePacks()
Returns a list containing the selected resource packs
|
void |
handleMouseInput()
Handles mouse input.
|
boolean |
hasResourcePackEntry(ResourcePackListEntry resourcePackEntry) |
void |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
void |
markChanged()
Marks the selected resource packs list as changed to trigger a resource reload when the screen is closed
|
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton)
Called when the mouse is clicked.
|
protected void |
mouseReleased(int mouseX,
int mouseY,
int state)
Called when a mouse button is released.
|
addButton, confirmClicked, doesGuiPauseGame, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, keyTyped, mouseClickMove, onGuiClosed, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setGuiSize, setText, setWorldAndResolution, updateScreendrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLinepublic GuiScreenResourcePacks(GuiScreen parentScreenIn)
public void initGui()
public void handleMouseInput()
throws java.io.IOException
handleMouseInput in class GuiScreenjava.io.IOExceptionpublic boolean hasResourcePackEntry(ResourcePackListEntry resourcePackEntry)
public java.util.List<ResourcePackListEntry> getListContaining(ResourcePackListEntry resourcePackEntry)
public java.util.List<ResourcePackListEntry> getAvailableResourcePacks()
public java.util.List<ResourcePackListEntry> getSelectedResourcePacks()
protected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed in class GuiScreenjava.io.IOExceptionprotected void mouseClicked(int mouseX,
int mouseY,
int mouseButton)
throws java.io.IOException
mouseClicked in class GuiScreenjava.io.IOExceptionprotected void mouseReleased(int mouseX,
int mouseY,
int state)
mouseReleased in class GuiScreenpublic void drawScreen(int mouseX,
int mouseY,
float partialTicks)
drawScreen in class GuiScreenpublic void markChanged()