Class ModListScreen.InfoPanel
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.neoforged.neoforge.client.gui.widget.ScrollPanel
net.neoforged.neoforge.client.gui.ModListScreen.InfoPanel
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, NarratableEntry, NarrationSupplier
- Enclosing class:
ModListScreen
-
Nested Class Summary
Nested classes/interfaces inherited from interface NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<FormattedCharSequence> private Size2iprivate @Nullable IdentifierFields inherited from class ScrollPanel
border, bottom, captureMouse, height, left, right, scrollDistance, top, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidprotected voiddrawPanel(GuiGraphicsExtractor guiGraphics, int entryRight, int relativeY, int mouseX, int mouseY) Draw anything special on the screen.findTextLine(int mouseX, int mouseY) intprotected intbooleanmouseClicked(MouseButtonEvent event, boolean doubleClick) private List<FormattedCharSequence> resizeContent(List<String> lines) (package private) voidsetInfo(List<String> lines, Identifier logoPath, Size2i logoDims) voidMethods inherited from class ScrollPanel
children, clickPanel, drawBackground, drawGradientRect, extractRenderState, isMouseOver, mouseDragged, mouseReleased, mouseScrolledMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface GuiEventListener
getRectangle, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface NarratableEntry
getNarratables, isActiveMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
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(GuiGraphicsExtractor guiGraphics, int entryRight, int relativeY, 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 classScrollPanel
-
findTextLine
-
mouseClicked
- Specified by:
mouseClickedin interfaceContainerEventHandler- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classScrollPanel
-
narrationPriority
-
updateNarration
-