Package net.minecraft.client.gui
Class GuiResourcePackList
- java.lang.Object
-
- net.minecraft.client.gui.GuiSlot
-
- net.minecraft.client.gui.GuiListExtended
-
- net.minecraft.client.gui.GuiResourcePackList
-
- Direct Known Subclasses:
GuiResourcePackAvailable
,GuiResourcePackSelected
public abstract class GuiResourcePackList extends GuiListExtended
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.client.gui.GuiListExtended
GuiListExtended.IGuiListEntry
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<ResourcePackListEntry>
field_148204_l
protected Minecraft
mc
-
Fields inherited from class net.minecraft.client.gui.GuiSlot
amountScrolled, bottom, field_148163_i, field_178041_q, hasListHeader, headerPadding, height, initialClickY, lastClicked, left, mouseX, mouseY, right, scrollMultiplier, selectedElement, showSelectionBox, slotHeight, top, width
-
-
Constructor Summary
Constructors Constructor Description GuiResourcePackList(Minecraft mcIn, int parInt1, int parInt2, java.util.List<ResourcePackListEntry> parList)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
drawListHeader(int i, int j, Tessellator var3)
+ Handles drawing a list's header row.java.util.List<ResourcePackListEntry>
getList()
ResourcePackListEntry
getListEntry(int i)
+ Gets the IGuiListEntry object for the given indexprotected abstract java.lang.String
getListHeader()
int
getListWidth()
+ Gets the width of the listprotected int
getScrollBarX()
protected int
getSize()
-
Methods inherited from class net.minecraft.client.gui.GuiListExtended
drawBackground, drawSlot, elementClicked, func_178040_a, isSelected, mouseClicked, mouseReleased
-
Methods inherited from class net.minecraft.client.gui.GuiSlot
actionPerformed, bindAmountScrolled, drawScreen, drawSelectionBox, func_148132_a, func_148135_f, func_148142_b, getAmountScrolled, getContentHeight, getEnabled, getSlotHeight, getSlotIndexFromScreenCoords, handleMouseInput, isMouseYWithinSlotBounds, overlayBackground, registerScrollButtons, scrollBy, setDimensions, setEnabled, setHasListHeader, setShowSelectionBox, setSlotXBoundsFromLeft
-
-
-
-
Field Detail
-
mc
protected final Minecraft mc
-
field_148204_l
protected final java.util.List<ResourcePackListEntry> field_148204_l
-
-
Constructor Detail
-
GuiResourcePackList
public GuiResourcePackList(Minecraft mcIn, int parInt1, int parInt2, java.util.List<ResourcePackListEntry> parList)
-
-
Method Detail
-
drawListHeader
protected void drawListHeader(int i, int j, Tessellator var3)
+ Handles drawing a list's header row.- Overrides:
drawListHeader
in classGuiSlot
-
getListHeader
protected abstract java.lang.String getListHeader()
-
getList
public java.util.List<ResourcePackListEntry> getList()
-
getListEntry
public ResourcePackListEntry getListEntry(int i)
+ Gets the IGuiListEntry object for the given index- Specified by:
getListEntry
in classGuiListExtended
-
getListWidth
public int getListWidth()
+ Gets the width of the list- Overrides:
getListWidth
in classGuiSlot
-
getScrollBarX
protected int getScrollBarX()
- Overrides:
getScrollBarX
in classGuiSlot
-
-