Class AbstractTestScreen.GroupableList.GroupEntry
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
net.neoforged.testframework.client.AbstractTestScreen.GroupableList.GroupEntry
- All Implemented Interfaces:
GuiEventListener
,TabOrderedElement
,NarrationSupplier
- Enclosing class:
AbstractTestScreen.GroupableList
protected final class AbstractTestScreen.GroupableList.GroupEntry
extends AbstractTestScreen.GroupableList.Entry
-
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
ModifierConstructorDescriptionprivate
GroupEntry
(Group group) private
GroupEntry
(Group group, boolean isTitle) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
enable
(boolean enable) private Component
getTitle()
boolean
boolean
mouseClicked
(double pMouseX, double pMouseY, int pButton) private void
void
render
(GuiGraphics pPoseStack, int pIndex, int pTop, int pLeft, int pWidth, int pHeight, int pMouseX, int pMouseY, boolean pIsMouseOver, float pPartialTick) protected void
renderTooltips
(GuiGraphics poseStack, int mouseX, int mouseY) void
reset()
Methods inherited from class net.neoforged.testframework.client.AbstractTestScreen.GroupableList.Entry
getNarration
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, 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
-
Field Details
-
group
-
browseButton
-
isTitle
private final boolean isTitle
-
-
Constructor Details
-
GroupEntry
-
GroupEntry
-
-
Method Details
-
render
public void render(GuiGraphics pPoseStack, int pIndex, int pTop, int pLeft, int pWidth, int pHeight, int pMouseX, int pMouseY, boolean pIsMouseOver, float pPartialTick) - Specified by:
render
in classAbstractSelectionList.Entry<AbstractTestScreen.GroupableList.Entry>
-
renderTooltips
- Overrides:
renderTooltips
in classAbstractTestScreen.GroupableList.Entry
-
getTitle
-
mouseClicked
public boolean mouseClicked(double pMouseX, double pMouseY, int pButton) - Specified by:
mouseClicked
in interfaceGuiEventListener
- Overrides:
mouseClicked
in classAbstractTestScreen.GroupableList.Entry
-
openBrowseGUI
private void openBrowseGUI() -
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in classAbstractTestScreen.GroupableList.Entry
-
canDisable
public boolean canDisable()- Overrides:
canDisable
in classAbstractTestScreen.GroupableList.Entry
-
canEnable
public boolean canEnable()- Overrides:
canEnable
in classAbstractTestScreen.GroupableList.Entry
-
enable
public void enable(boolean enable) - Specified by:
enable
in classAbstractTestScreen.GroupableList.Entry
-
reset
public void reset()- Specified by:
reset
in classAbstractTestScreen.GroupableList.Entry
-