Class DefaultConfigScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.rodofire.easierworldcreator.client.hud.screen.BackgroundScreen
net.rodofire.easierworldcreator.config.client.AbstractConfigScreen
net.rodofire.easierworldcreator.config.client.DefaultConfigScreen
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intprotected final intprotected shortprotected final net.minecraft.client.gui.screen.Screenprotected booleanFields inherited from class net.rodofire.easierworldcreator.config.client.AbstractConfigScreen
indexes, modId, selectedFields inherited from class net.rodofire.easierworldcreator.client.hud.screen.BackgroundScreen
TEXTUREFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionDefaultConfigScreen(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 TypeMethodDescription<T extends net.minecraft.client.gui.Element & net.minecraft.client.gui.Drawable & net.minecraft.client.gui.Selectable>
TaddElementChild(T element) voidaddElements(ConfigCategory category, int buttonHeight, int startY) we add the config elements (booleans, integer and enums)protected voidvoidclose()voidprotected voidinit(ConfigCategory category) booleanmouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) voidmouseMoved(double mouseX, double mouseY) booleanmouseReleased(double mouseX, double mouseY, int button) booleanmouseScrolled(double mouseX, double mouseY, double horizontalAmount) voidopenCategory(String name) voidrender(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta) voidrenderBackground(net.minecraft.client.gui.DrawContext context) voidrenderBackgroundTexture(net.minecraft.client.gui.DrawContext context) voidrenderOverBackground(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta) voidsaveExit()Methods inherited from class net.rodofire.easierworldcreator.config.client.AbstractConfigScreen
addInfoButton, addResetButton, configEquals, cycleEnum, getInfoScreen, hasInfoScreen, init, saveConfig, shouldRestart, toggleBoolean, verifyIntegerMethods inherited from class net.rodofire.easierworldcreator.client.hud.screen.BackgroundScreen
renderDarkRectangleMethods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, tick, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, 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
-
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
- Specified by:
initin classAbstractConfigScreen
-
addElements
we add the config elements (booleans, integer and enums)- Parameters:
category- the category to choose frombuttonHeight- the height of the buttonsstartY- 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
-
clearChildren
protected void clearChildren()- Overrides:
clearChildrenin classnet.minecraft.client.gui.screen.Screen
-
render
public void render(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta) - Specified by:
renderin interfacenet.minecraft.client.gui.Drawable- Overrides:
renderin classBackgroundScreen
-
renderOverBackground
public void renderOverBackground(net.minecraft.client.gui.DrawContext context, int mouseX, int mouseY, float delta) - Overrides:
renderOverBackgroundin classBackgroundScreen
-
renderBackground
public void renderBackground(net.minecraft.client.gui.DrawContext context) - Overrides:
renderBackgroundin classnet.minecraft.client.gui.screen.Screen
-
renderBackgroundTexture
public void renderBackgroundTexture(net.minecraft.client.gui.DrawContext context) - Overrides:
renderBackgroundTexturein classBackgroundScreen
-
saveExit
public void saveExit() -
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount) -
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:
closein classnet.minecraft.client.gui.screen.Screen
-
mouseMoved
public void mouseMoved(double mouseX, double mouseY)
-