java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.options.OptionsSubScreen
io.github.startsmercury.simply_no_shading.impl.client.gui.screens.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 net.minecraft.client.gui.screens.options.OptionsSubScreen
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static class 
     

    Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen

    net.minecraft.client.gui.screens.Screen.NarratableSearchResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
     
    private final Consumer<? super Config>
     
     
    private static final net.minecraft.network.chat.Component
     
    private ConfigPreset
     
    private static final net.minecraft.network.chat.Component
     
    private static final net.minecraft.network.chat.Component
     

    Fields inherited from class net.minecraft.client.gui.screens.options.OptionsSubScreen

    lastScreen, layout, list, options

    Fields 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

    Constructors
    Constructor
    Description
    ConfigScreen(@Nullable net.minecraft.client.gui.screens.Screen lastScreen, Config initialConfig, Consumer<? super Config> configCallback)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    private net.minecraft.client.OptionInstance<Boolean>
    createBoolean(String id, boolean initial, Consumer<Boolean> setter)
     
     
    private void
    presetChanged(net.minecraft.client.gui.components.OptionsList list, net.minecraft.client.OptionInstance<Boolean> shadeBlocks, net.minecraft.client.OptionInstance<Boolean> shadeClouds, net.minecraft.client.OptionInstance<Boolean> shadeEntities, ConfigPreset preset)
     
    void
     
    private static <T> void
    trySetWidget(net.minecraft.client.gui.components.AbstractWidget widget, T value)
     

    Methods inherited from class net.minecraft.client.gui.screens.options.OptionsSubScreen

    addContents, addFooter, addTitle, init, onClose, repositionElements, resetOption

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

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removeWidget, render, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus

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

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

    getBorderForArrowNavigation, mouseMoved, shouldTakeFocusAfterInteraction

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

    getTabOrderGroup
  • Field Details

    • TITLE

      private static final net.minecraft.network.chat.Component TITLE
    • QUALITY_HEADER

      private static final net.minecraft.network.chat.Component QUALITY_HEADER
    • PREFERENCES_HEADER

      private static final net.minecraft.network.chat.Component PREFERENCES_HEADER
    • configCallback

      private final Consumer<? super Config> configCallback
    • preset

      private ConfigPreset preset
    • compatibilityMode

      private boolean compatibilityMode
    • custom

      private Optional<ConfigScreen.Data> custom
  • Constructor Details

    • ConfigScreen

      public ConfigScreen(@Nullable @Nullable net.minecraft.client.gui.screens.Screen lastScreen, Config initialConfig, Consumer<? super Config> configCallback)
  • Method Details

    • removed

      public void removed()
      Overrides:
      removed in class net.minecraft.client.gui.screens.options.OptionsSubScreen
    • addOptions

      protected void addOptions()
      Specified by:
      addOptions in class net.minecraft.client.gui.screens.options.OptionsSubScreen
    • getOrCreateCustom

      private ConfigScreen.Data getOrCreateCustom()
    • presetChanged

      private void presetChanged(net.minecraft.client.gui.components.OptionsList list, net.minecraft.client.OptionInstance<Boolean> shadeBlocks, net.minecraft.client.OptionInstance<Boolean> shadeClouds, net.minecraft.client.OptionInstance<Boolean> shadeEntities, ConfigPreset preset)
    • trySetWidget

      private static <T> void trySetWidget(net.minecraft.client.gui.components.AbstractWidget widget, T value)
    • createBoolean

      private net.minecraft.client.OptionInstance<Boolean> createBoolean(String id, boolean initial, Consumer<Boolean> setter)