class ModListScreen.InfoPanel extends ScrollPanel
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<ITextComponent> |
lines |
private Size2i |
logoDims |
private ResourceLocation |
logoPath |
border, bottom, captureMouse, height, left, right, scrollDistance, top, widthBACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION| Constructor and Description |
|---|
InfoPanel(Minecraft mcIn,
int widthIn,
int heightIn,
int topIn) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
clearInfo() |
protected void |
drawBackground() |
protected void |
drawPanel(int entryRight,
int relativeY,
Tessellator tess,
int mouseX,
int mouseY)
Draw anything special on the screen.
|
private ITextComponent |
findTextLine(int mouseX,
int mouseY) |
int |
getContentHeight() |
protected int |
getScrollAmount() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
private java.util.List<ITextComponent> |
resizeContent(java.util.List<java.lang.String> lines) |
(package private) void |
setInfo(java.util.List<java.lang.String> lines,
ResourceLocation logoPath,
Size2i logoDims) |
children, clickPanel, drawGradientRect, isMouseOver, mouseDragged, mouseReleased, mouseScrolled, rendergetFocused, isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, charTyped, func_212932_b, getEventListenerForPos, keyPressed, keyReleased, setFocusedDefaultmouseMovedprivate ResourceLocation logoPath
private Size2i logoDims
private java.util.List<ITextComponent> lines
InfoPanel(Minecraft mcIn, int widthIn, int heightIn, int topIn)
void setInfo(java.util.List<java.lang.String> lines,
ResourceLocation logoPath,
Size2i logoDims)
void clearInfo()
private java.util.List<ITextComponent> resizeContent(java.util.List<java.lang.String> lines)
public int getContentHeight()
getContentHeight in class ScrollPanelprotected int getScrollAmount()
getScrollAmount in class ScrollPanelprotected void drawPanel(int entryRight,
int relativeY,
Tessellator tess,
int mouseX,
int mouseY)
ScrollPaneldrawPanel in class ScrollPanelprivate ITextComponent findTextLine(int mouseX, int mouseY)
public boolean mouseClicked(double mouseX,
double mouseY,
int button)
mouseClicked in interface IGuiEventListenermouseClicked in interface INestedGuiEventHandlermouseClicked in class ScrollPanelprotected void drawBackground()
drawBackground in class ScrollPanel