Class ModListScreen.InfoPanel
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraftforge.client.gui.ScrollPanel
net.minecraftforge.fml.client.gui.screen.ModListScreen.InfoPanel
- All Implemented Interfaces:
IGuiEventListener,INestedGuiEventHandler,IRenderable
- Enclosing class:
- ModListScreen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<IReorderingProcessor>private Size2iprivate ResourceLocationFields inherited from class net.minecraftforge.client.gui.ScrollPanel
border, bottom, captureMouse, height, left, right, scrollDistance, top, widthFields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidprotected voidprotected voiddrawPanel(MatrixStack mStack, int entryRight, int relativeY, Tessellator tess, int mouseX, int mouseY) Draw anything special on the screen.private StylefindTextLine(int mouseX, int mouseY) intprotected intbooleanmouseClicked(double mouseX, double mouseY, int button) private List<IReorderingProcessor>resizeContent(List<String> lines) (package private) voidsetInfo(List<String> lines, ResourceLocation logoPath, Size2i logoDims) Methods inherited from class net.minecraftforge.client.gui.ScrollPanel
children, clickPanel, drawGradientRect, isMouseOver, mouseDragged, mouseReleased, mouseScrolled, renderMethods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.IGuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyPressed, keyReleased, magicalSpecialHackyFocus, setInitialFocus
-
Field Details
-
logoPath
-
logoDims
-
lines
-
-
Constructor Details
-
InfoPanel
InfoPanel(Minecraft mcIn, int widthIn, int heightIn, int topIn)
-
-
Method Details
-
setInfo
-
clearInfo
void clearInfo() -
resizeContent
-
getContentHeight
public int getContentHeight()- Specified by:
getContentHeightin classScrollPanel
-
getScrollAmount
protected int getScrollAmount()- Overrides:
getScrollAmountin classScrollPanel
-
drawPanel
protected void drawPanel(MatrixStack mStack, int entryRight, int relativeY, Tessellator tess, int mouseX, int mouseY) Description copied from class:ScrollPanelDraw anything special on the screen. GL_SCISSOR is enabled for anything that is rendered outside of the view box. Do not mess with SCISSOR unless you support this.- Specified by:
drawPanelin classScrollPanel
-
findTextLine
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) - Specified by:
mouseClickedin interfaceIGuiEventListener- Specified by:
mouseClickedin interfaceINestedGuiEventHandler- Overrides:
mouseClickedin classScrollPanel
-
drawBackground
protected void drawBackground()- Overrides:
drawBackgroundin classScrollPanel
-