private class GuiModList.Info extends GuiScrollingList
Modifier and Type | Field and Description |
---|---|
private java.util.List<ITextComponent> |
lines |
private java.awt.Dimension |
logoDims |
private ResourceLocation |
logoPath |
bottom, captureMouse, left, listHeight, listWidth, mouseX, mouseY, right, screenHeight, screenWidth, selectedIndex, slotHeight, top
Constructor and Description |
---|
Info(int width,
java.util.List<java.lang.String> lines,
ResourceLocation logoPath,
java.awt.Dimension logoDims) |
Modifier and Type | Method and Description |
---|---|
protected void |
clickHeader(int x,
int y) |
protected void |
drawBackground() |
protected void |
drawHeader(int entryRight,
int relativeY,
Tessellator tess)
Draw anything special on the screen.
|
protected void |
drawSlot(int slotIdx,
int entryRight,
int slotTop,
int slotBuffer,
Tessellator tess)
Draw anything special on the screen.
|
protected void |
elementClicked(int index,
boolean doubleClick) |
private int |
getHeaderHeight() |
protected int |
getSize() |
protected boolean |
isSelected(int index) |
private java.util.List<ITextComponent> |
resizeContent(java.util.List<java.lang.String> lines) |
actionPerformed, drawGradientRect, drawScreen, drawScreen, func_27255_a, func_27256_c, func_27257_b, func_27258_a, func_27259_a, func_27260_a, getContentHeight, handleMouseInput, registerScrollButtons, setHeaderInfo
@Nullable private ResourceLocation logoPath
private java.awt.Dimension logoDims
private java.util.List<ITextComponent> lines
public Info(int width, java.util.List<java.lang.String> lines, @Nullable ResourceLocation logoPath, java.awt.Dimension logoDims)
protected int getSize()
getSize
in class GuiScrollingList
protected void elementClicked(int index, boolean doubleClick)
elementClicked
in class GuiScrollingList
protected boolean isSelected(int index)
isSelected
in class GuiScrollingList
protected void drawBackground()
drawBackground
in class GuiScrollingList
protected void drawSlot(int slotIdx, int entryRight, int slotTop, int slotBuffer, Tessellator tess)
GuiScrollingList
drawSlot
in class GuiScrollingList
private java.util.List<ITextComponent> resizeContent(java.util.List<java.lang.String> lines)
private int getHeaderHeight()
protected void drawHeader(int entryRight, int relativeY, Tessellator tess)
GuiScrollingList
drawHeader
in class GuiScrollingList
protected void clickHeader(int x, int y)
clickHeader
in class GuiScrollingList