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 TypeMethodDescriptionvoidextractContent(GuiGraphicsExtractor guiGraphics, int mouseX, int mouseY, boolean hovered, float partialTick) getInfo()booleanbooleanmouseClicked(MouseButtonEvent event, boolean doubleClick) voidsetFocused(boolean focused) 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, preeditUpdated, 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>
-
extractContent
public void extractContent(GuiGraphicsExtractor guiGraphics, int mouseX, int mouseY, boolean hovered, float partialTick) - Specified by:
extractContentin classAbstractSelectionList.Entry<ModListWidget.ModEntry>
-
mouseClicked
- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classObjectSelectionList.Entry<ModListWidget.ModEntry>
-
setFocused
public void setFocused(boolean focused) - Specified by:
setFocusedin interfaceGuiEventListener- Overrides:
setFocusedin classAbstractSelectionList.Entry<ModListWidget.ModEntry>
-
isFocused
public boolean isFocused()- Specified by:
isFocusedin interfaceGuiEventListener- Overrides:
isFocusedin classAbstractSelectionList.Entry<ModListWidget.ModEntry>
-
getInfo
-
getContainer
-