Class BaseConfigScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.simibubi.create.foundation.gui.AbstractSimiScreen
com.simibubi.create.foundation.config.ui.ConfigScreen
com.simibubi.create.foundation.config.ui.BaseConfigScreen
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.Widget
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DelegatedStencilElement.ElementRendererprotected booleanFields inherited from class com.simibubi.create.foundation.config.ui.ConfigScreen
backgrounds, cogSpin, cogwheelState, parentFields inherited from class com.simibubi.create.foundation.gui.AbstractSimiScreen
guiLeft, guiTop, windowHeight, windowWidth, windowXOffset, windowYOffsetFields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, widthFields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATIONFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionBaseConfigScreen(net.minecraft.client.gui.screens.Screen parent, String modID) -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseConfigScreenforCreate(net.minecraft.client.gui.screens.Screen parent) protected voidinit()booleankeyPressed(int keyCode, int scanCode, int modifiers) protected voidrenderWindow(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks) If you have static references to your Configs or ConfigSpecs (like Create does inAllConfigs), please usewithSpecs(ForgeConfigSpec, ForgeConfigSpec, ForgeConfigSpec)insteadstatic voidsetDefaultActionFor(String modID, UnaryOperator<BaseConfigScreen> transform) If you are a Create Addon dev and want to change the config labels, add a default action here.withSpecs(net.minecraftforge.common.ForgeConfigSpec client, net.minecraftforge.common.ForgeConfigSpec common, net.minecraftforge.common.ForgeConfigSpec server) withTitles(String client, String common, String server) Methods inherited from class com.simibubi.create.foundation.config.ui.ConfigScreen
endFrame, isPauseScreen, mouseScrolled, prepareFrame, renderBackground, renderCog, renderMenuBackground, renderWindowBackground, tick, toHumanReadableMethods inherited from class com.simibubi.create.foundation.gui.AbstractSimiScreen
addRenderableWidgets, addRenderableWidgets, debugWindowArea, removeWidgets, removeWidgets, render, renderWindowForeground, setWindowOffset, setWindowSizeMethods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onClose, onFilesDrop, removed, removeWidget, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods 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
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, setInitialFocusMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Field Details
-
DISABLED_RENDERER
-
returnOnClose
protected boolean returnOnClose
-
-
Constructor Details
-
BaseConfigScreen
-
-
Method Details
-
setDefaultActionFor
If you are a Create Addon dev and want to change the config labels, add a default action here. Make sure you call eitherwithSpecs(ForgeConfigSpec, ForgeConfigSpec, ForgeConfigSpec)orsearchForSpecsInModContainer()- Parameters:
modID- the modID of your addon/mod
-
forCreate
-
searchForSpecsInModContainer
If you have static references to your Configs or ConfigSpecs (like Create does inAllConfigs), please usewithSpecs(ForgeConfigSpec, ForgeConfigSpec, ForgeConfigSpec)instead -
withSpecs
public BaseConfigScreen withSpecs(@Nullable net.minecraftforge.common.ForgeConfigSpec client, @Nullable net.minecraftforge.common.ForgeConfigSpec common, @Nullable net.minecraftforge.common.ForgeConfigSpec server) -
withTitles
public BaseConfigScreen withTitles(@Nullable String client, @Nullable String common, @Nullable String server) -
init
protected void init()- Overrides:
initin classAbstractSimiScreen
-
renderWindow
protected void renderWindow(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks) - Overrides:
renderWindowin classConfigScreen
-
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 classAbstractSimiScreen
-