Package net.minecraftforge.client.gui
Class ModListScreen.InfoPanel
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraftforge.client.gui.widget.ScrollPanel
net.minecraftforge.client.gui.ModListScreen.InfoPanel
- All Implemented Interfaces:
- ContainerEventHandler,- GuiEventListener,- Renderable,- TabOrderedElement,- NarratableEntry,- NarrationSupplier
- Enclosing class:
- ModListScreen
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntryNarratableEntry.NarrationPriority
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate List<FormattedCharSequence>private Size2iprivate ResourceLocationFields inherited from class net.minecraftforge.client.gui.widget.ScrollPanelborder, bottom, captureMouse, height, left, right, scrollDistance, top, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription(package private) voidprotected voiddrawPanel(GuiGraphics guiGraphics, int entryRight, int relativeY, Tesselator 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<FormattedCharSequence>resizeContent(List<String> lines) (package private) voidsetInfo(List<String> lines, ResourceLocation logoPath, Size2i logoDims) voidupdateNarration(NarrationElementOutput p_169152_) Methods inherited from class net.minecraftforge.client.gui.widget.ScrollPanelchildren, clickPanel, drawBackground, drawGradientRect, isMouseOver, mouseDragged, mouseReleased, mouseScrolled, renderMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandlergetFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandlercharTyped, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, magicalSpecialHackyFocus, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenergetRectangle, mouseMovedMethods inherited from interface net.minecraft.client.gui.narration.NarratableEntryisActiveMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElementgetTabOrderGroup
- 
Field Details- 
logoPath
- 
logoDims
- 
lines
 
- 
- 
Constructor Details- 
InfoPanelInfoPanel(Minecraft mcIn, int widthIn, int heightIn, int topIn) 
 
- 
- 
Method Details- 
setInfo
- 
clearInfovoid clearInfo()
- 
resizeContent
- 
getContentHeightpublic int getContentHeight()- Specified by:
- getContentHeightin class- ScrollPanel
 
- 
getScrollAmountprotected int getScrollAmount()- Overrides:
- getScrollAmountin class- ScrollPanel
 
- 
drawPanelprotected void drawPanel(GuiGraphics guiGraphics, int entryRight, int relativeY, Tesselator tess, int mouseX, int mouseY) Description copied from class:ScrollPanelDraw anything special on the screen. Scissor (RenderSystem.enableScissor) is enabled for anything that is rendered outside the view box. Do not mess with Scissor unless you support this.- Specified by:
- drawPanelin class- ScrollPanel
 
- 
findTextLine
- 
mouseClickedpublic boolean mouseClicked(double mouseX, double mouseY, int button) - Specified by:
- mouseClickedin interface- ContainerEventHandler
- Specified by:
- mouseClickedin interface- GuiEventListener
- Overrides:
- mouseClickedin class- ScrollPanel
 
- 
narrationPriority
- 
updateNarration
 
-