Class AbstractTestScreen.GroupableList.GroupEntry
java.lang.Object
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:
net.minecraft.client.gui.components.events.GuiEventListener
,net.minecraft.client.gui.components.TabOrderedElement
,net.minecraft.client.gui.narration.NarrationSupplier
- Enclosing class:
AbstractTestScreen.GroupableList
protected final class AbstractTestScreen.GroupableList.GroupEntry
extends AbstractTestScreen.GroupableList.Entry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.minecraft.client.gui.components.Button
private final Group
private final boolean
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
GroupEntry
(Group group) private
GroupEntry
(Group group, boolean isTitle) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
enable
(boolean enable) private net.minecraft.network.chat.Component
getTitle()
boolean
boolean
mouseClicked
(double pMouseX, double pMouseY, int pButton) private void
void
render
(net.minecraft.client.gui.GuiGraphics graphics, int pIndex, int pTop, int pLeft, int pWidth, int pHeight, int pMouseX, int pMouseY, boolean pIsMouseOver, float pPartialTick) protected void
renderTooltips
(net.minecraft.client.gui.GuiGraphics graphics, 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 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, getBorderForArrowNavigation, getCurrentFocusPath, getRectangle, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
group
-
browseButton
private final net.minecraft.client.gui.components.Button browseButton -
isTitle
private final boolean isTitle
-
-
Constructor Details
-
GroupEntry
-
GroupEntry
-
-
Method Details
-
render
public void render(net.minecraft.client.gui.GuiGraphics graphics, int pIndex, int pTop, int pLeft, int pWidth, int pHeight, int pMouseX, int pMouseY, boolean pIsMouseOver, float pPartialTick) -
renderTooltips
protected void renderTooltips(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) - Overrides:
renderTooltips
in classAbstractTestScreen.GroupableList.Entry
-
getTitle
private net.minecraft.network.chat.Component getTitle() -
mouseClicked
public boolean mouseClicked(double pMouseX, double pMouseY, int pButton) - Specified by:
mouseClicked
in interfacenet.minecraft.client.gui.components.events.GuiEventListener
- 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
-