Class ConfigSelectScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.ixdarklord.coolcatcore.internal.config.client.gui.style.StyledScreen
net.ixdarklord.coolcatcore.internal.config.client.gui.ConfigSelectScreen
- 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
The main config screen: one mod's configs, or every mod's, as cards grouped by mod. Its search bar is the only one
that searches across configs: results are listed by config, each config a category of its matching settings, and
opening one shows that config filtered to it. (A config's own search only searches that config.)
-
Nested Class Summary
Nested classes/interfaces inherited from class net.ixdarklord.coolcatcore.internal.config.client.gui.style.StyledScreen
StyledScreen.TitleIconNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
Fields inherited from class net.ixdarklord.coolcatcore.internal.config.client.gui.style.StyledScreen
BAR_HEIGHT, GAP, MARGIN, theme, TITLE_ICONFields inherited from class net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionConfigSelectScreen(@Nullable net.minecraft.client.gui.screens.Screen parent, @Nullable String modId) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinit()booleankeyPressed(int keyCode, int scanCode, int modifiers) voidonClose()protected @Nullable net.minecraft.client.gui.screens.ScreenThe screen this one returns to, for choosing which way it slides in.protected voidrenderPanels(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float a) Draws the bars, panels and fixed text under the widgets.protected voidprotected intThe top bar's height; a screen with a larger header makes it taller.Methods inherited from class net.ixdarklord.coolcatcore.internal.config.client.gui.style.StyledScreen
added, addModeToggle, barWidgetY, bodyBottom, bodyTop, bottomBarY, frameLeft, frameWidth, removed, render, renderBackground, renderPanorama, renderTitle, renderTitle, theme, topBarWidgetY, topBarYMethods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods 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, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
ConfigSelectScreen
public ConfigSelectScreen(@Nullable @Nullable net.minecraft.client.gui.screens.Screen parent, @Nullable @Nullable String modId)
-
-
Method Details
-
init
protected void init()- Overrides:
initin classnet.minecraft.client.gui.screens.Screen
-
parentScreen
@Nullable protected @Nullable net.minecraft.client.gui.screens.Screen parentScreen()Description copied from class:StyledScreenThe screen this one returns to, for choosing which way it slides in.- Overrides:
parentScreenin classStyledScreen
-
topBarHeight
protected int topBarHeight()Description copied from class:StyledScreenThe top bar's height; a screen with a larger header makes it taller.- Overrides:
topBarHeightin classStyledScreen
-
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classnet.minecraft.client.gui.screens.Screen
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) - Specified by:
keyPressedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
keyPressedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
keyPressedin classnet.minecraft.client.gui.screens.Screen
-
renderPanels
protected void renderPanels(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float a) Description copied from class:StyledScreenDraws the bars, panels and fixed text under the widgets.- Overrides:
renderPanelsin classStyledScreen
-
onClose
public void onClose()- Overrides:
onClosein classnet.minecraft.client.gui.screens.Screen
-