Package net.createmod.catnip.config.ui
Class ConfigScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.createmod.catnip.gui.AbstractSimiScreen
net.createmod.catnip.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.Renderable,net.minecraft.client.gui.components.TabOrderedElement
- 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, net.minecraft.client.gui.GuiGraphics, Float>> static final PhysicalFloatstatic final List<UnaryOperator<String>> static Stringprotected final net.minecraft.client.gui.screens.Screenstatic DelegatedStencilElementstatic net.minecraft.world.level.block.state.BlockStateFields inherited from class net.createmod.catnip.gui.AbstractSimiScreen
BACKGROUND_COLOR, guiLeft, guiTop, windowHeight, windowWidth, windowXOffset, windowYOffsetFields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidendFrame()getModDisplayName(String modID) This method checks some language keys to see if the mod has declared a display name via lang.booleanbooleanmouseScrolled(double mouseX, double mouseY, double scrollX, double scrollY) protected voidvoidrenderBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) protected static voidrenderCog(net.minecraft.client.gui.GuiGraphics graphics) protected voidrenderMenuBackground(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks) By default, ConfigScreens will render the Vanilla Panorama as their background when not opened ingame.protected voidrenderWindow(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) protected voidrenderWindowBackground(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) voidtick()static StringtoHumanReadable(String key) Methods inherited from class net.createmod.catnip.gui.AbstractSimiScreen
addRenderableWidgets, addRenderableWidgets, debugWindowArea, getFocused, getRenderables, init, keyPressed, removeWidgets, removeWidgets, render, renderWindowForeground, setWindowOffset, setWindowSizeMethods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
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.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
displayNameKeys
-
knownModDisplayNames
-
backgrounds
-
cogSpin
-
modID
-
parent
@Nullable protected final net.minecraft.client.gui.screens.Screen parent -
shadowState
public static net.minecraft.world.level.block.state.BlockState shadowState -
shadowElement
-
-
Constructor Details
-
ConfigScreen
public ConfigScreen(@Nullable net.minecraft.client.gui.screens.Screen parent)
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classAbstractSimiScreen
-
renderBackground
public void renderBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) - Overrides:
renderBackgroundin classAbstractSimiScreen
-
renderWindowBackground
protected void renderWindowBackground(net.minecraft.client.gui.GuiGraphics graphics, 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(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) - Specified by:
renderWindowin classAbstractSimiScreen
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double scrollX, double scrollY) -
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classAbstractSimiScreen
-
getModDisplayName
This method checks some language keys to see if the mod has declared a display name via lang. If none of those succeed, it checks a list of manually declared ones for compatibility. -
toHumanReadable
-
renderMenuBackground
protected void renderMenuBackground(net.minecraft.client.gui.GuiGraphics graphics, float partialTicks) By default, ConfigScreens will render the Vanilla Panorama as their background when not opened ingame. If your mod wants to render something else, please add to thebackgroundsMap in this Class with your modID as the key. -
renderCog
protected static void renderCog(net.minecraft.client.gui.GuiGraphics graphics)
-