Class AbstractTestScreen.GroupableList
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractContainerWidget
net.minecraft.client.gui.components.AbstractSelectionList<AbstractTestScreen.GroupableList.Entry>
net.minecraft.client.gui.components.ObjectSelectionList<AbstractTestScreen.GroupableList.Entry>
net.neoforged.testframework.client.AbstractTestScreen.GroupableList
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
,IAbstractWidgetExtension
- Enclosing class:
AbstractTestScreen
protected final class AbstractTestScreen.GroupableList
extends ObjectSelectionList<AbstractTestScreen.GroupableList.Entry>
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
protected final class
protected final class
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Function
<String, List<? extends AbstractTestScreen.GroupableList.Entry>> Fields inherited from class net.minecraft.client.gui.components.AbstractSelectionList
centerListVertically, headerHeight, itemHeight, minecraft, SCROLLBAR_WIDTH
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionGroupableList
(BooleanSupplier isGrouped, List<Group> groups, Supplier<Stream<Test>> tests, Minecraft pMinecraft, int pWidth, int pHeight, int pY, int pItemHeight) GroupableList
(Function<String, List<? extends AbstractTestScreen.GroupableList.Entry>> entryGetter, Minecraft pMinecraft, int pWidth, int pHeight, int pY, int pItemHeight) -
Method Summary
Modifier and TypeMethodDescriptionint
protected int
protected boolean
isValidMouseClick
(int button) private void
renderTooltips
(GuiGraphics poseStack, int mouseX, int mouseY) void
renderWidget
(GuiGraphics pPoseStack, int pMouseX, int pMouseY, float pPartialTick) void
private Stream
<? extends AbstractTestScreen.GroupableList.Entry> withGroups
(Stream<Test> tests, List<Group> groups) Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList
nextFocusPath, updateWidgetNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
addEntry, addEntryToTop, centerScrollOn, children, clampScrollAmount, clearEntries, clickedHeader, enableScissor, ensureVisible, getDefaultScrollbarPosition, getEntry, getEntryAtPosition, getFirstElement, getFocused, getHovered, getItemCount, getMaxPosition, getMaxScroll, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelected, isMouseOver, isSelectedItem, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, narrateListElementPosition, narrationPriority, nextEntry, nextEntry, nextEntry, remove, removeEntry, removeEntryFromTop, renderDecorations, renderHeader, renderItem, renderListBackground, renderListItems, renderListSeparators, renderSelection, replaceEntries, scrollbarVisible, setClampedScrollAmount, setFocused, setRenderHeader, setScrollAmount, setSelected, updateScrollingState, updateSize, updateSizeAndPosition
Methods inherited from class net.minecraft.client.gui.components.AbstractContainerWidget
isDragging, isFocused, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isHovered, isHoveredOrFocused, isValidClickButton, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage
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.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, keyPressed, keyReleased
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, mouseMoved
Methods inherited from interface net.neoforged.neoforge.client.extensions.IAbstractWidgetExtension
onClick
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
entryGetter
-
-
Constructor Details
-
GroupableList
public GroupableList(Function<String, List<? extends AbstractTestScreen.GroupableList.Entry>> entryGetter, Minecraft pMinecraft, int pWidth, int pHeight, int pY, int pItemHeight) -
GroupableList
-
-
Method Details
-
resetRows
-
isValidMouseClick
protected boolean isValidMouseClick(int button) - Overrides:
isValidMouseClick
in classAbstractSelectionList<AbstractTestScreen.GroupableList.Entry>
-
getScrollbarPosition
protected int getScrollbarPosition()- Overrides:
getScrollbarPosition
in classAbstractSelectionList<AbstractTestScreen.GroupableList.Entry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidth
in classAbstractSelectionList<AbstractTestScreen.GroupableList.Entry>
-
renderWidget
- Overrides:
renderWidget
in classAbstractSelectionList<AbstractTestScreen.GroupableList.Entry>
-
renderTooltips
-
withGroups
-