Package net.minecraftforge.client.gui
Class ModListScreen.InfoPanel
java.lang.Object
net.minecraft.client.gui.GuiComponent
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,NarratableEntry,NarrationSupplier
- Enclosing class:
- ModListScreen
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<FormattedCharSequence>private Size2iprivate ResourceLocationFields inherited from class net.minecraftforge.client.gui.widget.ScrollPanel
border, bottom, captureMouse, height, left, right, scrollDistance, top, widthFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidprotected voiddrawPanel(PoseStack poseStack, 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.ScrollPanel
children, clickPanel, drawBackground, drawGradientRect, isMouseOver, mouseDragged, mouseReleased, mouseScrolled, renderMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, 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.components.events.ContainerEventHandler
changeFocus, charTyped, getChildAt, keyPressed, keyReleased, magicalSpecialHackyFocus, setInitialFocusMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
isActive
-
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(PoseStack poseStack, 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 classScrollPanel
-
findTextLine
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) - Specified by:
mouseClickedin interfaceContainerEventHandler- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classScrollPanel
-
narrationPriority
-
updateNarration
-