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 Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
Modifier and TypeFieldDescriptionprivate List
<FormattedCharSequence> private Size2i
private ResourceLocation
Fields inherited from class net.minecraftforge.client.gui.widget.ScrollPanel
border, bottom, captureMouse, height, left, right, scrollDistance, top, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
protected void
drawPanel
(GuiGraphics guiGraphics, int entryRight, int relativeY, Tesselator tess, int mouseX, int mouseY) Draw anything special on the screen.private Style
findTextLine
(int mouseX, int mouseY) int
protected int
boolean
mouseClicked
(double mouseX, double mouseY, int button) private List
<FormattedCharSequence> resizeContent
(List<String> lines) (package private) void
setInfo
(List<String> lines, ResourceLocation logoPath, Size2i logoDims) void
updateNarration
(NarrationElementOutput p_169152_) Methods inherited from class net.minecraftforge.client.gui.widget.ScrollPanel
children, clickPanel, drawBackground, drawGradientRect, isMouseOver, mouseDragged, mouseReleased, mouseScrolled, render
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, mouseMoved
Methods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
isActive
Methods inherited from interface net.minecraft.client.gui.components.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:
getContentHeight
in classScrollPanel
-
getScrollAmount
protected int getScrollAmount()- Overrides:
getScrollAmount
in classScrollPanel
-
drawPanel
protected void drawPanel(GuiGraphics guiGraphics, int entryRight, int relativeY, Tesselator tess, int mouseX, int mouseY) Description copied from class:ScrollPanel
Draw 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:
drawPanel
in classScrollPanel
-
findTextLine
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) - Specified by:
mouseClicked
in interfaceContainerEventHandler
- Specified by:
mouseClicked
in interfaceGuiEventListener
- Overrides:
mouseClicked
in classScrollPanel
-
narrationPriority
-
updateNarration
-