Package net.createmod.catnip.config.ui
Class ConfigScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
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.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 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
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()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 delta) protected voidvoidrenderBackground(com.mojang.blaze3d.vertex.PoseStack ms) protected static voidrenderCog(com.mojang.blaze3d.vertex.PoseStack ms) protected voidrenderMenuBackground(com.mojang.blaze3d.vertex.PoseStack ms, float partialTicks) By default, ConfigScreens will render the Vanilla Panorama as their background when not opened ingame.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 net.createmod.catnip.gui.AbstractSimiScreen
addRenderableWidgets, addRenderableWidgets, debugWindowArea, getFocused, getWidgets, 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, rebuildWidgets, removed, removeWidget, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, shouldCloseOnEsc, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, 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
-
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(@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
-
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(com.mojang.blaze3d.vertex.PoseStack ms, 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(com.mojang.blaze3d.vertex.PoseStack ms)
-