Class AbstractTestScreen.GroupableList.Entry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<AbstractTestScreen.GroupableList.Entry>
net.minecraft.client.gui.components.ObjectSelectionList.Entry<AbstractTestScreen.GroupableList.Entry>
net.neoforged.testframework.client.AbstractTestScreen.GroupableList.Entry
- All Implemented Interfaces:
GuiEventListener
,TabOrderedElement
,NarrationSupplier
- Direct Known Subclasses:
AbstractTestScreen.GroupableList.GroupEntry
,AbstractTestScreen.GroupableList.TestEntry
- Enclosing class:
AbstractTestScreen.GroupableList
protected abstract sealed class AbstractTestScreen.GroupableList.Entry
extends ObjectSelectionList.Entry<AbstractTestScreen.GroupableList.Entry>
permits AbstractTestScreen.GroupableList.TestEntry, AbstractTestScreen.GroupableList.GroupEntry
-
Field Summary
Fields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
list
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
abstract void
enable
(boolean enable) abstract boolean
boolean
mouseClicked
(double pMouseX, double pMouseY, int pButton) Called when a mouse button is clicked within the GUI element.protected void
renderTooltips
(GuiGraphics poseStack, int mouseX, int mouseY) abstract void
reset()
Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
updateNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
isFocused, isMouseOver, render, renderBack, 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.GuiEventListener
charTyped, getCurrentFocusPath, getRectangle, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
Entry
protected Entry()
-
-
Method Details
-
getNarration
- Specified by:
getNarration
in classObjectSelectionList.Entry<AbstractTestScreen.GroupableList.Entry>
-
isEnabled
public abstract boolean isEnabled() -
canDisable
public boolean canDisable() -
canEnable
public boolean canEnable() -
enable
public abstract void enable(boolean enable) -
reset
public abstract void reset() -
mouseClicked
public boolean mouseClicked(double pMouseX, double pMouseY, int pButton) Description copied from interface:GuiEventListener
Called when a mouse button is clicked within the GUI element.- Specified by:
mouseClicked
in interfaceGuiEventListener
- Overrides:
mouseClicked
in classObjectSelectionList.Entry<AbstractTestScreen.GroupableList.Entry>
- Parameters:
pMouseX
- the X coordinate of the mouse.pMouseY
- the Y coordinate of the mouse.pButton
- the button that was clicked.- Returns:
true
if the event is consumed,false
otherwise.
-
renderTooltips
-