Class DefaultConfigScreen

java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
All Implemented Interfaces:
net.minecraft.client.gui.Drawable, net.minecraft.client.gui.Element, net.minecraft.client.gui.navigation.Navigable, net.minecraft.client.gui.ParentElement
Direct Known Subclasses:
EwcConfigScreen

@Environment(CLIENT) public class DefaultConfigScreen extends AbstractConfigScreen
  • Nested Class Summary

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

    net.minecraft.client.gui.screen.Screen.SelectedElementNarrationData
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected int
     
    protected List<Short>
     
    protected final int
     
    protected short
     
    protected final net.minecraft.client.gui.screen.Screen
     
    protected boolean
     
    protected Map<Short,Boolean>
     

    Fields inherited from class net.rodofire.easierworldcreator.config.client.AbstractConfigScreen

    indexes, modId, selected

    Fields inherited from class net.rodofire.easierworldcreator.client.hud.screen.BackgroundScreen

    TEXTURE

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

    client, executor, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, width

    Fields inherited from interface net.minecraft.client.gui.Element

    MAX_DOUBLE_CLICK_INTERVAL
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultConfigScreen(net.minecraft.client.gui.screen.Screen parent, ModClientConfig config, String modId)
     
    DefaultConfigScreen(net.minecraft.client.gui.screen.Screen parent, ModClientConfig config, String modId, net.minecraft.util.Identifier background, int backgroundWidth, int backgroundHeight)
     
    DefaultConfigScreen(net.minecraft.client.gui.screen.Screen parent, ModClientConfig config, String modId, net.minecraft.util.Identifier background, int backgroundWidth, int backgroundHeight, int backgroundShaderColor, int backgroundDarkRectangleShaderColor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends net.minecraft.client.gui.Element & net.minecraft.client.gui.Drawable & net.minecraft.client.gui.Selectable>
    T
    addElementChild(T element)
     
    void
    addElements(ConfigCategory category, int buttonHeight, int startY)
    we add the config elements (booleans, integer and enums)
    protected void
     
    void
     
    void
     
    protected void
    init(ConfigCategory category)
     
    boolean
    mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)
     
    void
    mouseMoved(double mouseX, double mouseY)
     
    boolean
    mouseReleased(double mouseX, double mouseY, int button)
     
    boolean
    mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount)
     
    void
     
    void
    render(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta)
     
    void
    renderBackgroundTexture(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta)
    method to render the backgound
    void
     

    Methods inherited from class net.rodofire.easierworldcreator.config.client.AbstractConfigScreen

    addInfoButton, addResetButton, configEquals, cycleEnum, getInfoScreen, hasInfoScreen, init, saveConfig, shouldRestart, toggleBoolean, verifyInteger

    Methods inherited from class net.rodofire.easierworldcreator.client.hud.screen.BackgroundScreen

    renderBackground, renderDarkRectangle, renderOverBackground

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

    addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearTooltip, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, refreshNarrator, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, tick, updateNarrator, wrapScreenError

    Methods inherited from class net.minecraft.client.gui.AbstractParentElement

    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.navigation.Navigable

    getNavigationOrder

    Methods inherited from interface net.minecraft.client.gui.ParentElement

    charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, setFocused
  • Field Details

    • parent

      protected final net.minecraft.client.gui.screen.Screen parent
    • currentCategoryIndex

      protected int currentCategoryIndex
    • maxCategoriesVisible

      protected final int maxCategoriesVisible
      See Also:
    • maxScrollY

      protected short maxScrollY
    • cancelScreen

      protected boolean cancelScreen
    • restartScreen

      protected boolean restartScreen
    • heights

      protected List<Short> heights
    • widths

      protected Map<Short,Boolean> widths
  • Constructor Details

    • DefaultConfigScreen

      public DefaultConfigScreen(net.minecraft.client.gui.screen.Screen parent, ModClientConfig config, String modId)
    • DefaultConfigScreen

      public DefaultConfigScreen(net.minecraft.client.gui.screen.Screen parent, ModClientConfig config, String modId, net.minecraft.util.Identifier background, int backgroundWidth, int backgroundHeight)
    • DefaultConfigScreen

      public DefaultConfigScreen(net.minecraft.client.gui.screen.Screen parent, ModClientConfig config, String modId, net.minecraft.util.Identifier background, int backgroundWidth, int backgroundHeight, int backgroundShaderColor, int backgroundDarkRectangleShaderColor)
  • Method Details

    • init

      protected void init(ConfigCategory category)
      Specified by:
      init in class AbstractConfigScreen
    • addElements

      public void addElements(ConfigCategory category, int buttonHeight, int startY)
      we add the config elements (booleans, integer and enums)
      Parameters:
      category - the category to choose from
      buttonHeight - the height of the buttons
      startY - the start of the buttons
    • addElementChild

      public <T extends net.minecraft.client.gui.Element & net.minecraft.client.gui.Drawable & net.minecraft.client.gui.Selectable> T addElementChild(T element)
    • drawBottomElements

      public void drawBottomElements()
    • openCategory

      public void openCategory(String name)
    • clearChildren

      protected void clearChildren()
      Overrides:
      clearChildren in class net.minecraft.client.gui.screen.Screen
    • render

      public void render(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface net.minecraft.client.gui.Drawable
      Overrides:
      render in class BackgroundScreen
    • renderBackgroundTexture

      public void renderBackgroundTexture(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta)
      Description copied from class: BackgroundScreen
      method to render the backgound
      Overrides:
      renderBackgroundTexture in class BackgroundScreen
    • saveExit

      public void saveExit()
    • mouseScrolled

      public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount)
    • mouseReleased

      public boolean mouseReleased(double mouseX, double mouseY, int button)
    • mouseDragged

      public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY)
    • close

      public void close()
      Overrides:
      close in class net.minecraft.client.gui.screen.Screen
    • mouseMoved

      public void mouseMoved(double mouseX, double mouseY)