Class StyledConfigScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.ixdarklord.coolcatcanvas.internal.client.gui.style.StyledScreen
net.ixdarklord.coolcatcanvas.internal.client.config.StyledConfigScreen
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from class 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 StyledScreen
BAR_HEIGHT, GAP, MARGIN, theme, TITLE_ICONFields inherited from class net.minecraft.client.gui.screens.Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, screenExecutor, title, width -
Constructor Summary
ConstructorsConstructorDescriptionStyledConfigScreen(@Nullable net.minecraft.client.gui.screens.Screen parent, net.minecraft.network.chat.Component title, ConfigTheme theme, List<Config> configs, @Nullable String path) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidextractPanels(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) Draws the bars, panels and fixed text under the widgets.protected voidinit()booleanbooleankeyPressed(net.minecraft.client.input.KeyEvent event) booleanmouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick) booleanmouseDragged(net.minecraft.client.input.MouseButtonEvent event, double dx, double dy) booleanmouseReleased(net.minecraft.client.input.MouseButtonEvent event) booleanmouseScrolled(double mouseX, double mouseY, double scrollX, double scrollY) voidonClose()protected @Nullable net.minecraft.client.gui.screens.ScreenThe screen this one returns to, for choosing which way it slides in.Methods inherited from class StyledScreen
added, addModeToggle, barWidgetY, bodyBottom, bodyTop, bottomBarY, extractBackground, extractRenderState, extractTitle, extractTitle, frameLeft, frameWidth, removed, theme, topBarHeight, topBarWidgetY, topBarYMethods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isValidCharacterForName, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removeWidget, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
StyledConfigScreen
public StyledConfigScreen(@Nullable @Nullable net.minecraft.client.gui.screens.Screen parent, net.minecraft.network.chat.Component title, ConfigTheme theme, List<Config> configs, @Nullable @Nullable String path) - Parameters:
configs- what the screen edits, each listed with its categoriespath- the category to open at (like"visuals"), in the first config; null for the first one
-
-
Method Details
-
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
-
init
protected void init()- Overrides:
initin classnet.minecraft.client.gui.screens.Screen
-
onClose
public void onClose()- Overrides:
onClosein classnet.minecraft.client.gui.screens.Screen
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classnet.minecraft.client.gui.screens.Screen
-
extractPanels
protected void extractPanels(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) Description copied from class:StyledScreenDraws the bars, panels and fixed text under the widgets.- Overrides:
extractPanelsin classStyledScreen
-
mouseClicked
public boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick) -
mouseDragged
public boolean mouseDragged(net.minecraft.client.input.MouseButtonEvent event, double dx, double dy) -
mouseReleased
public boolean mouseReleased(net.minecraft.client.input.MouseButtonEvent event) -
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double scrollX, double scrollY) -
keyPressed
public boolean keyPressed(net.minecraft.client.input.KeyEvent event) - 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
-