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 -
Method Summary
Modifier and TypeMethodDescriptionfinal voidextractBackground(net.minecraft.client.gui.GuiGraphicsExtractor g, int x, int y, float tick) final voidextractRenderState(net.minecraft.client.gui.GuiGraphicsExtractor g, int x, int y, float tick) static booleanstatic booleanstatic booleanbooleankeyPressed(int key, int scan, int modifiers) final booleankeyPressed(net.minecraft.client.input.KeyEvent e) booleanmouseClicked(double x, double y, int button) final booleanmouseClicked(net.minecraft.client.input.MouseButtonEvent e, boolean twice) booleanmouseDragged(double x, double y, int button, double dx, double dy) final booleanmouseDragged(net.minecraft.client.input.MouseButtonEvent e, double dx, double dy) booleanmouseReleased(double x, double y, int button) final booleanmouseReleased(net.minecraft.client.input.MouseButtonEvent e) voidrender(ClientGraphics g, int x, int y, float tick) voidrenderBackground(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, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, 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, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseScrolled, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods 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:
extractRenderStatein interfacenet.minecraft.client.gui.components.Renderable- Overrides:
extractRenderStatein classnet.minecraft.client.gui.screens.Screen
-
render
-
extractBackground
public final void extractBackground(net.minecraft.client.gui.GuiGraphicsExtractor g, int x, int y, float tick) - Overrides:
extractBackgroundin classnet.minecraft.client.gui.screens.Screen
-
renderBackground
-
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:
keyPressedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
keyPressedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
keyPressedin classnet.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()
-