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

public abstract class ConfigScreen extends AbstractSimiScreen
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen

    net.minecraft.client.gui.screens.Screen.NarratableSearchResult
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Map<String,org.apache.logging.log4j.util.TriConsumer<net.minecraft.client.gui.screens.Screen,com.mojang.blaze3d.vertex.PoseStack,Float>>
     
    static final PhysicalFloat
     
    static final net.minecraft.world.level.block.state.BlockState
     
    static String
     
    protected final net.minecraft.client.gui.screens.Screen
     

    Fields inherited from class com.simibubi.create.foundation.gui.AbstractSimiScreen

    guiLeft, guiTop, windowHeight, windowWidth, windowXOffset, windowYOffset

    Fields inherited from class net.minecraft.client.gui.screens.Screen

    font, height, itemRenderer, minecraft, passEvents, renderables, title, width

    Fields inherited from class net.minecraft.client.gui.GuiComponent

    BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConfigScreen(net.minecraft.client.gui.screens.Screen parent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    boolean
     
    boolean
    mouseScrolled(double mouseX, double mouseY, double delta)
     
    protected void
     
    void
    renderBackground(com.mojang.blaze3d.vertex.PoseStack ms)
     
    protected void
    renderCog(com.mojang.blaze3d.vertex.PoseStack ms, float partialTicks)
     
    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.
    protected void
    renderWindow(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks)
     
    protected void
    renderWindowBackground(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks)
     
    void
     
    static String
     

    Methods 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, 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, wrapScreenError

    Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler

    getFocused, isDragging, setDragging, setFocused

    Methods 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, vLine

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler

    changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, setInitialFocus

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    mouseMoved
  • Field Details

    • backgrounds

      public static final Map<String,org.apache.logging.log4j.util.TriConsumer<net.minecraft.client.gui.screens.Screen,com.mojang.blaze3d.vertex.PoseStack,Float>> backgrounds
    • cogSpin

      public static final PhysicalFloat cogSpin
    • cogwheelState

      public static final net.minecraft.world.level.block.state.BlockState cogwheelState
    • modID

      public static String 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:
      tick in class AbstractSimiScreen
    • renderBackground

      public void renderBackground(@Nonnull com.mojang.blaze3d.vertex.PoseStack ms)
      Overrides:
      renderBackground in class net.minecraft.client.gui.screens.Screen
    • renderWindowBackground

      protected void renderWindowBackground(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks)
      Overrides:
      renderWindowBackground in class AbstractSimiScreen
    • prepareFrame

      protected void prepareFrame()
      Overrides:
      prepareFrame in class AbstractSimiScreen
    • endFrame

      protected void endFrame()
      Overrides:
      endFrame in class AbstractSimiScreen
    • renderWindow

      protected void renderWindow(com.mojang.blaze3d.vertex.PoseStack ms, int mouseX, int mouseY, float partialTicks)
      Specified by:
      renderWindow in class AbstractSimiScreen
    • mouseScrolled

      public boolean mouseScrolled(double mouseX, double mouseY, double delta)
    • isPauseScreen

      public boolean isPauseScreen()
      Overrides:
      isPauseScreen in class AbstractSimiScreen
    • toHumanReadable

      public static String toHumanReadable(String key)
    • 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)