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.ConfigScreen
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

public final class ConfigScreen extends StyledScreen
A config's screen: the title, badges and search in the top bar; categories (the root's settings and each top-level group) in a sidebar; the chosen category's settings, with nested groups as sections, in the main panel; and the unsaved-changes status with the actions in the bottom bar. Narrow windows drop the sidebar and show everything.

Keys: Ctrl+Z / Ctrl+Y undo and redo, Ctrl+S saves, Ctrl+F searches.

  • Nested Class Summary

    Nested classes/interfaces inherited from class net.ixdarklord.coolcatcore.internal.config.client.gui.style.StyledScreen

    StyledScreen.TitleIcon

    Nested 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_ICON

    Fields inherited from class net.minecraft.client.gui.screens.Screen

    BACKGROUND_LOCATION, font, height, minecraft, screenExecutor, title, width

    Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    DOUBLE_CLICK_THRESHOLD_MS
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    create(@Nullable net.minecraft.client.gui.screens.Screen parent, ConfigImpl config)
     
    create(@Nullable net.minecraft.client.gui.screens.Screen parent, ConfigImpl config, String query)
    Opens the config filtered by a search, as the main screen's search results do.
    protected void
     
    boolean
    keyPressed(int keyCode, int scanCode, int modifiers)
     
    void
     
    void
    The server's values changed while this screen was open.
    protected @Nullable net.minecraft.client.gui.screens.Screen
    The screen this one returns to, for choosing which way it slides in.
    protected void
    renderPanels(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float a)
    Draws the bars, panels and fixed text under the widgets.
    protected void
     
    void
     

    Methods inherited from class net.ixdarklord.coolcatcore.internal.config.client.gui.style.StyledScreen

    addModeToggle, barWidgetY, bodyBottom, bodyTop, bottomBarY, frameLeft, frameWidth, removed, render, renderBackground, renderPanorama, renderTitle, renderTitle, theme, topBarHeight, topBarWidgetY, topBarY

    Methods 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, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError

    Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler

    getFocused, isDragging, setDragging, setFocused

    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, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    mouseMoved

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Method Details

    • create

      public static ConfigScreen create(@Nullable @Nullable net.minecraft.client.gui.screens.Screen parent, ConfigImpl config)
    • create

      public static ConfigScreen create(@Nullable @Nullable net.minecraft.client.gui.screens.Screen parent, ConfigImpl config, String query)
      Opens the config filtered by a search, as the main screen's search results do.
    • init

      protected void init()
      Overrides:
      init in class net.minecraft.client.gui.screens.Screen
    • repositionElements

      protected void repositionElements()
      Overrides:
      repositionElements in class net.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: StyledScreen
      Draws the bars, panels and fixed text under the widgets.
      Overrides:
      renderPanels in class StyledScreen
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.client.gui.screens.Screen
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      keyPressed in class net.minecraft.client.gui.screens.Screen
    • parentScreen

      @Nullable protected @Nullable net.minecraft.client.gui.screens.Screen parentScreen()
      Description copied from class: StyledScreen
      The screen this one returns to, for choosing which way it slides in.
      Overrides:
      parentScreen in class StyledScreen
    • onClose

      public void onClose()
      Overrides:
      onClose in class net.minecraft.client.gui.screens.Screen
    • onConfigSynced

      public void onConfigSynced(Config config)
      The server's values changed while this screen was open.
    • added

      public void added()
      Overrides:
      added in class StyledScreen