Class ModListWidget.ModEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<ModListWidget.ModEntry>
net.minecraft.client.gui.components.ObjectSelectionList.Entry<ModListWidget.ModEntry>
net.neoforged.neoforge.client.gui.widget.ModListWidget.ModEntry
- All Implemented Interfaces:
GuiEventListener,TabOrderedElement,LayoutElement,NarrationSupplier
- Enclosing class:
ModListWidget
-
Field Summary
FieldsFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInfo()booleanbooleanmouseClicked(MouseButtonEvent event, boolean doubleClick) voidrenderContent(GuiGraphics guiGraphics, int mouseX, int mouseY, boolean hovered, float partialTick) voidsetFocused(boolean focused) Sets the focus state of the GUI element.Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
updateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
getContentBottom, getContentHeight, getContentRight, getContentWidth, getContentX, getContentXMiddle, getContentY, getContentYMiddle, getHeight, getRectangle, getWidth, getX, getY, isMouseOver, setHeight, setWidth, setX, setY, visitWidgetsMethods 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.GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
container
-
parent
-
-
Constructor Details
-
ModEntry
ModEntry(ModContainer info, ModListScreen parent)
-
-
Method Details
-
getNarration
- Specified by:
getNarrationin classObjectSelectionList.Entry<ModListWidget.ModEntry>
-
renderContent
public void renderContent(GuiGraphics guiGraphics, int mouseX, int mouseY, boolean hovered, float partialTick) - Specified by:
renderContentin classAbstractSelectionList.Entry<ModListWidget.ModEntry>
-
mouseClicked
- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classObjectSelectionList.Entry<ModListWidget.ModEntry>
-
setFocused
public void setFocused(boolean focused) Description copied from interface:GuiEventListenerSets the focus state of the GUI element.- Specified by:
setFocusedin interfaceGuiEventListener- Overrides:
setFocusedin classAbstractSelectionList.Entry<ModListWidget.ModEntry>- Parameters:
focused-trueto apply focus,falseto remove focus
-
isFocused
public boolean isFocused()- Specified by:
isFocusedin interfaceGuiEventListener- Overrides:
isFocusedin classAbstractSelectionList.Entry<ModListWidget.ModEntry>
-
getInfo
-
getContainer
-