Class ConfigEntryList
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.components.AbstractSelectionList<E>
net.minecraft.client.gui.components.ContainerObjectSelectionList<E>
net.ixdarklord.coolcatcore.internal.config.client.gui.style.StyledList<ConfigEntryList.Entry>
net.ixdarklord.coolcatcore.internal.config.client.gui.ConfigEntryList
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.Renderable,net.minecraft.client.gui.components.TabOrderedElement,net.minecraft.client.gui.narration.NarratableEntry,net.minecraft.client.gui.narration.NarrationSupplier
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classA notice card: where edits go, why nothing is shown...static final classA nested group's heading: its name in the accent, then a rule to the edge; deeper groups are indented.static final classOne setting: its name and a line of description on the left, the editor and a reset button on the right.Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
net.minecraft.client.gui.narration.NarratableEntry.NarrationPriority -
Field Summary
Fields inherited from class net.minecraft.client.gui.components.AbstractSelectionList
centerListVertically, headerHeight, height, itemHeight, minecraft, width, x0, x1, y0, y1Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionConfigEntryList(net.minecraft.client.Minecraft minecraft, int width, int height, int y) -
Method Summary
Modifier and TypeMethodDescriptionintintvoidShows the pending values again, after undo, a reset or the server's values arriving.protected voidrenderScrollbar(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) A plain scrollbar, as vanilla's lists draw it, while the rows don't fit.protected intvoidsetEntries(List<ConfigEntryList.Entry> entries) Methods inherited from class net.ixdarklord.coolcatcore.internal.config.client.gui.style.StyledList
addEntry, addEntry, centerScrollOn, contentHeight, enableScissor, ensureVisible, entryAt, getBottom, getHeight, getHovered, getMaxPosition, getMaxScroll, getRectangle, getRight, getRowBottom, getRowTop, getScrollbarPosition, getWidth, getX, getY, isMouseOver, maxScrollAmount, mouseClicked, narrationPriority, removeEntry, render, replaceEntries, repositionEntries, scrollable, scrollAmount, scrollBarY, scrollerHeight, setPosition, setScrollAmount, setSize, updateSizeAndPosition, updateSizeAndPositionMethods inherited from class net.minecraft.client.gui.components.ContainerObjectSelectionList
isSelectedItem, nextFocusPath, setFocused, updateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList
addEntryToTop, children, clearEntries, clickedHeader, getEntry, getEntryAtPosition, getFirstElement, getFocused, getItemCount, getRowRight, getScrollAmount, getScrollBottom, getSelected, mouseDragged, mouseReleased, mouseScrolled, narrateListElementPosition, nextEntry, nextEntry, nextEntry, remove, removeEntryFromTop, renderBackground, renderDecorations, renderHeader, renderItem, renderList, renderSelection, setLeftPos, setRenderBackground, setRenderHeader, setRenderSelection, setRenderTopAndBottom, setSelected, updateScrollingState, updateSizeMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
isDragging, setDraggingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, magicalSpecialHackyFocus, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
isActiveMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
ConfigEntryList
public ConfigEntryList(net.minecraft.client.Minecraft minecraft, int width, int height, int y)
-
-
Method Details
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classnet.minecraft.client.gui.components.AbstractSelectionList<ConfigEntryList.Entry>
-
getRowLeft
public int getRowLeft()- Overrides:
getRowLeftin classStyledList<ConfigEntryList.Entry>
-
scrollBarX
protected int scrollBarX()- Overrides:
scrollBarXin classStyledList<ConfigEntryList.Entry>
-
setEntries
-
refreshValues
public void refreshValues()Shows the pending values again, after undo, a reset or the server's values arriving. -
renderScrollbar
protected void renderScrollbar(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY) Description copied from class:StyledListA plain scrollbar, as vanilla's lists draw it, while the rows don't fit.- Overrides:
renderScrollbarin classStyledList<ConfigEntryList.Entry>
-