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 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 ObjectSelectionList.Entry
updateNarrationMethods inherited from class AbstractSelectionList.Entry
getContentBottom, getContentHeight, getContentRight, getContentWidth, getContentX, getContentXMiddle, getContentY, getContentYMiddle, getHeight, getRectangle, getWidth, getX, getY, isMouseOver, setHeight, setWidth, setX, setY, visitWidgetsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface 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
-