public class BaseConfigScreen extends ConfigScreen
| Modifier and Type | Field and Description |
|---|---|
static DelegatedStencilElement.ElementRenderer |
DISABLED_RENDERER |
protected boolean |
returnOnClose |
backgrounds, cogSpin, cogwheelState, parentguiLeft, guiTop, widgets, windowHeight, windowWidth, windowXOffset, windowYOffset| Constructor and Description |
|---|
BaseConfigScreen(net.minecraft.client.gui.screen.Screen parent,
java.lang.String modID) |
| Modifier and Type | Method and Description |
|---|---|
static BaseConfigScreen |
forCreate(net.minecraft.client.gui.screen.Screen parent) |
protected void |
init() |
void |
onClose() |
protected void |
renderWindow(com.mojang.blaze3d.matrix.MatrixStack ms,
int mouseX,
int mouseY,
float partialTicks) |
BaseConfigScreen |
searchForSpecsInModContainer()
If you have static references to your Configs or ConfigSpecs (like Create does in
AllConfigs),
please use withSpecs(ForgeConfigSpec, ForgeConfigSpec, ForgeConfigSpec) instead |
static void |
setDefaultActionFor(java.lang.String modID,
java.util.function.UnaryOperator<BaseConfigScreen> transform)
If you are a Create Addon dev and want to change the config labels,
add a default action here.
|
BaseConfigScreen |
withSpecs(net.minecraftforge.common.ForgeConfigSpec client,
net.minecraftforge.common.ForgeConfigSpec common,
net.minecraftforge.common.ForgeConfigSpec server) |
BaseConfigScreen |
withTitles(java.lang.String client,
java.lang.String common,
java.lang.String server) |
endFrame, isPauseScreen, mouseScrolled, prepareFrame, renderBackground, renderCog, renderMenuBackground, renderWindowBackground, tick, toHumanReadablecharTyped, debugWindowArea, getWidgets, keyPressed, mouseClicked, mouseReleased, render, renderWindowForeground, setWindowOffset, setWindowSize, shouldCloseOnEscaddButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, removed, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, wrapScreenErrorgetFocused, isDragging, setDragging, setFocusedblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final DelegatedStencilElement.ElementRenderer DISABLED_RENDERER
protected boolean returnOnClose
public BaseConfigScreen(net.minecraft.client.gui.screen.Screen parent,
@Nonnull
java.lang.String modID)
public static void setDefaultActionFor(java.lang.String modID,
java.util.function.UnaryOperator<BaseConfigScreen> transform)
withSpecs(ForgeConfigSpec, ForgeConfigSpec, ForgeConfigSpec)
or searchForSpecsInModContainer()modID - the modID of your addon/modpublic static BaseConfigScreen forCreate(net.minecraft.client.gui.screen.Screen parent)
public BaseConfigScreen searchForSpecsInModContainer()
AllConfigs),
please use withSpecs(ForgeConfigSpec, ForgeConfigSpec, ForgeConfigSpec) insteadpublic BaseConfigScreen withSpecs(@Nullable net.minecraftforge.common.ForgeConfigSpec client, @Nullable net.minecraftforge.common.ForgeConfigSpec common, @Nullable net.minecraftforge.common.ForgeConfigSpec server)
public BaseConfigScreen withTitles(@Nullable java.lang.String client, @Nullable java.lang.String common, @Nullable java.lang.String server)
protected void init()
init in class AbstractSimiScreenprotected void renderWindow(com.mojang.blaze3d.matrix.MatrixStack ms,
int mouseX,
int mouseY,
float partialTicks)
renderWindow in class ConfigScreenpublic void onClose()
onClose in class net.minecraft.client.gui.screen.Screen