Class ClientScreen

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
dev.miyomiyo.agentbridge.client.ClientScreen
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:
ClientOverlayScreen

public abstract class ClientScreen extends net.minecraft.client.gui.screens.Screen
Optional screen base with the same drawing/input callback shape on supported Minecraft targets. Override the normalized callbacks; native callbacks provide their original event metadata to super calls during that invocation. Do not invoke normalized input methods to synthesize a native event. Input context is restored on return, including nested dispatch and exceptions. World lifetime, navigation and background work remain the extension's responsibility.
  • 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 inherited from class net.minecraft.client.gui.screens.Screen

    FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ClientScreen(net.minecraft.network.chat.Component title)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    extractBackground(net.minecraft.client.gui.GuiGraphicsExtractor g, int x, int y, float tick)
     
    final void
    extractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor g, int x, int y, float tick)
     
    static boolean
     
    static boolean
     
    static boolean
     
    boolean
    keyPressed(int key, int scan, int modifiers)
     
    final boolean
    keyPressed(net.minecraft.client.input.KeyEvent e)
     
    boolean
    mouseClicked(double x, double y, int button)
     
    final boolean
    mouseClicked(net.minecraft.client.input.MouseButtonEvent e, boolean twice)
     
    boolean
    mouseDragged(double x, double y, int button, double dx, double dy)
     
    final boolean
    mouseDragged(net.minecraft.client.input.MouseButtonEvent e, double dx, double dy)
     
    boolean
    mouseReleased(double x, double y, int button)
     
    final boolean
    mouseReleased(net.minecraft.client.input.MouseButtonEvent e)
     
    void
    render(ClientGraphics g, int x, int y, float tick)
     
    void
    renderBackground(ClientGraphics g, int x, int y, float tick)
     

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

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus

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

    getFocused, isDragging, setDragging, setFocused

    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

    charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseScrolled, nextFocusPath, preeditUpdated, setFocused

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

    mouseMoved, shouldTakeFocusAfterInteraction

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Constructor Details

    • ClientScreen

      protected ClientScreen(net.minecraft.network.chat.Component title)
  • Method Details

    • extractRenderState

      public final void extractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor g, int x, int y, float tick)
      Specified by:
      extractRenderState in interface net.minecraft.client.gui.components.Renderable
      Overrides:
      extractRenderState in class net.minecraft.client.gui.screens.Screen
    • render

      public void render(ClientGraphics g, int x, int y, float tick)
    • extractBackground

      public final void extractBackground(net.minecraft.client.gui.GuiGraphicsExtractor g, int x, int y, float tick)
      Overrides:
      extractBackground in class net.minecraft.client.gui.screens.Screen
    • renderBackground

      public void renderBackground(ClientGraphics g, int x, int y, float tick)
    • mouseClicked

      public final boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent e, boolean twice)
    • mouseClicked

      public boolean mouseClicked(double x, double y, int button)
    • mouseReleased

      public final boolean mouseReleased(net.minecraft.client.input.MouseButtonEvent e)
    • mouseReleased

      public boolean mouseReleased(double x, double y, int button)
    • mouseDragged

      public final boolean mouseDragged(net.minecraft.client.input.MouseButtonEvent e, double dx, double dy)
    • mouseDragged

      public boolean mouseDragged(double x, double y, int button, double dx, double dy)
    • keyPressed

      public final boolean keyPressed(net.minecraft.client.input.KeyEvent e)
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      keyPressed in class net.minecraft.client.gui.screens.Screen
    • keyPressed

      public boolean keyPressed(int key, int scan, int modifiers)
    • hasControlDown

      public static boolean hasControlDown()
    • hasShiftDown

      public static boolean hasShiftDown()
    • hasAltDown

      public static boolean hasAltDown()