Class ConfigScreen
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
- All Implemented Interfaces:
net.minecraft.client.gui.components.events.ContainerEventHandler,net.minecraft.client.gui.components.events.GuiEventListener,net.minecraft.client.gui.components.Widget
- Direct Known Subclasses:
BaseConfigScreen,ConfigModListScreen,SubMenuConfigScreen
-
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 Map<String,org.apache.logging.log4j.util.TriConsumer<net.minecraft.client.gui.screens.Screen, com.mojang.blaze3d.vertex.PoseStack, Float>> static final PhysicalFloatstatic final net.minecraft.world.level.block.state.BlockStatestatic Stringprotected final net.minecraft.client.gui.screens.ScreenFields 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, title, 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidendFrame()booleanbooleanmouseScrolled(double mouseX, double mouseY, double delta) protected voidvoidrenderBackground(com.mojang.blaze3d.vertex.PoseStack ms) protected voidrenderCog(com.mojang.blaze3d.vertex.PoseStack ms, float partialTicks) protected voidrenderMenuBackground(com.mojang.blaze3d.vertex.PoseStack ms, float partialTicks) By default ConfigScreens will render the Create Panorama as their background when opened from the Main- or ModList-Menu.protected voidrenderWindow(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks) protected voidrenderWindowBackground(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks) voidtick()static StringtoHumanReadable(String key) Methods inherited from class com.simibubi.create.foundation.gui.AbstractSimiScreen
addRenderableWidgets, addRenderableWidgets, debugWindowArea, init, keyPressed, 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
-
backgrounds
-
cogSpin
-
cogwheelState
public static final net.minecraft.world.level.block.state.BlockState cogwheelState -
modID
-
parent
protected final net.minecraft.client.gui.screens.Screen parent
-
-
Constructor Details
-
ConfigScreen
public ConfigScreen(net.minecraft.client.gui.screens.Screen parent)
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classAbstractSimiScreen
-
renderBackground
public void renderBackground(@Nonnull com.mojang.blaze3d.vertex.PoseStack ms) - Overrides:
renderBackgroundin classnet.minecraft.client.gui.screens.Screen
-
renderWindowBackground
protected void renderWindowBackground(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks) - Overrides:
renderWindowBackgroundin classAbstractSimiScreen
-
prepareFrame
protected void prepareFrame()- Overrides:
prepareFramein classAbstractSimiScreen
-
endFrame
protected void endFrame()- Overrides:
endFramein classAbstractSimiScreen
-
renderWindow
protected void renderWindow(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks) - Specified by:
renderWindowin classAbstractSimiScreen
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double delta) -
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classAbstractSimiScreen
-
toHumanReadable
-
renderMenuBackground
protected void renderMenuBackground(com.mojang.blaze3d.vertex.PoseStack ms, float partialTicks) By default ConfigScreens will render the Create Panorama as their background when opened from the Main- or ModList-Menu. If your addon wants to render something else, please add to the backgrounds Map in this Class with your modID as the key. -
renderCog
protected void renderCog(com.mojang.blaze3d.vertex.PoseStack ms, float partialTicks)
-