Package net.minecraft.client.gui
Interface Element
- All Superinterfaces:
- Navigable
- All Known Subinterfaces:
- ParentElement
- All Known Implementing Classes:
- AbstractCommandBlockScreen,- AbstractFurnaceRecipeBookScreen,- AbstractFurnaceScreen,- AbstractInventoryScreen,- AbstractParentElement,- AbstractSignEditScreen,- AbstractTextWidget,- AbuseReportReasonScreen,- AbuseReportReasonScreen.ReasonListWidget,- AbuseReportReasonScreen.ReasonListWidget.ReasonEntry,- AccessibilityOnboardingScreen,- AccessibilityOptionsScreen,- AddServerScreen,- AdvancementsScreen,- AlwaysSelectedEntryListWidget,- AlwaysSelectedEntryListWidget.Entry,- AnimatedResultButton,- AnvilScreen,- BackupPromptScreen,- BeaconScreen,- BeaconScreen.BaseButtonWidget,- BeaconScreen.CancelButtonWidget,- BeaconScreen.DoneButtonWidget,- BeaconScreen.EffectButtonWidget,- BeaconScreen.IconButtonWidget,- BeaconScreen.LevelTwoEffectButtonWidget,- BlastFurnaceRecipeBookScreen,- BlastFurnaceScreen,- BookEditScreen,- BookScreen,- BrewingStandScreen,- ButtonWidget,- CartographyTableScreen,- ChatOptionsScreen,- ChatReportScreen,- ChatReportScreen.DiscardWarningScreen,- ChatScreen,- ChatSelectionScreen,- ChatSelectionScreen.SelectionListWidget,- ChatSelectionScreen.SelectionListWidget.Entry,- ChatSelectionScreen.SelectionListWidget.MessageEntry,- ChatSelectionScreen.SelectionListWidget.SenderEntry,- ChatSelectionScreen.SelectionListWidget.SeparatorEntry,- ChatSelectionScreen.SelectionListWidget.TextEntry,- CheckboxWidget,- ClickableWidget,- CommandBlockScreen,- ConfirmLinkScreen,- ConfirmScreen,- ConnectScreen,- ControlsListWidget,- ControlsListWidget.CategoryEntry,- ControlsListWidget.Entry,- ControlsListWidget.KeyBindingEntry,- ControlsOptionsScreen,- CraftingScreen,- CreateWorldScreen,- CreativeInventoryScreen,- CreditsAndAttributionScreen,- CreditsScreen,- CustomizeBuffetLevelScreen,- CustomizeBuffetLevelScreen.BuffetBiomesListWidget,- CustomizeBuffetLevelScreen.BuffetBiomesListWidget.BuffetBiomeItem,- CustomizeFlatLevelScreen,- CustomizeFlatLevelScreen.SuperflatLayersListWidget,- CustomizeFlatLevelScreen.SuperflatLayersListWidget.SuperflatLayerEntry,- CyclingButtonWidget,- DatapackFailureScreen,- DeathScreen,- DeathScreen.TitleScreenConfirmScreen,- DemoScreen,- DialogScreen,- DirectConnectScreen,- DisconnectedRealmsScreen,- DisconnectedScreen,- DownloadingTerrainScreen,- EditBoxWidget,- EditGameRulesScreen,- EditGameRulesScreen.AbstractRuleWidget,- EditGameRulesScreen.BooleanRuleWidget,- EditGameRulesScreen.IntRuleWidget,- EditGameRulesScreen.NamedRuleWidget,- EditGameRulesScreen.RuleCategoryWidget,- EditGameRulesScreen.RuleListWidget,- EditWorldScreen,- ElementListWidget,- ElementListWidget.Entry,- EnchantmentScreen,- EntryListWidget,- EntryListWidget.Entry,- ExperimentalWarningScreen,- ExperimentalWarningScreen.DetailsScreen,- ExperimentalWarningScreen.DetailsScreen.PackListWidget,- ExperimentalWarningScreen.DetailsScreen.PackListWidgetEntry,- ExperimentsScreen,- FatalErrorScreen,- ForgingScreen,- FurnaceRecipeBookScreen,- FurnaceScreen,- GameMenuScreen,- GameModeSelectionScreen,- GameModeSelectionScreen.ButtonWidget,- GameOptionsScreen,- Generic3x3ContainerScreen,- GenericContainerScreen,- GrindstoneScreen,- HandledScreen,- HangingSignEditScreen,- HopperScreen,- HorseScreen,- IconButtonWidget,- IconWidget,- InventoryScreen,- JigsawBlockScreen,- KeybindsScreen,- LanguageOptionsScreen,- LanguageOptionsScreen.LanguageSelectionListWidget,- LanguageOptionsScreen.LanguageSelectionListWidget.LanguageEntry,- LecternScreen,- LevelLoadingScreen,- LockButtonWidget,- LoomScreen,- MerchantScreen,- MerchantScreen.WidgetButtonPage,- MessageScreen,- MinecartCommandBlockScreen,- MouseOptionsScreen,- MultilineTextWidget,- MultiplayerScreen,- MultiplayerServerListWidget,- MultiplayerServerListWidget.Entry,- MultiplayerServerListWidget.LanServerEntry,- MultiplayerServerListWidget.ScanningEntry,- MultiplayerServerListWidget.ServerEntry,- MultiplayerWarningScreen,- NarratedMultilineTextWidget,- NoticeScreen,- OnlineOptionsScreen,- OpenToLanScreen,- OptimizeWorldScreen,- OptionListWidget,- OptionListWidget.WidgetEntry,- OptionSliderWidget,- OptionsScreen,- OutOfMemoryScreen,- PackListWidget,- PackListWidget.ResourcePackEntry,- PackScreen,- PageTurnWidget,- PresetsScreen,- PresetsScreen.SuperflatPresetsListWidget,- PresetsScreen.SuperflatPresetsListWidget.SuperflatPresetEntry,- PressableTextWidget,- PressableWidget,- ProgressScreen,- Realms32BitWarningScreen,- RealmsBackupInfoScreen,- RealmsBackupInfoScreen.BackupInfoList,- RealmsBackupInfoScreen.BackupInfoListEntry,- RealmsBackupScreen,- RealmsBackupScreen.BackupObjectSelectionList,- RealmsBackupScreen.BackupObjectSelectionListEntry,- RealmsBrokenWorldScreen,- RealmsClientOutdatedScreen,- RealmsConfigureWorldScreen,- RealmsConfirmScreen,- RealmsCreateRealmScreen,- RealmsDownloadLatestWorldScreen,- RealmsGenericErrorScreen,- RealmsInviteScreen,- RealmsLongConfirmationScreen,- RealmsLongRunningMcoTaskScreen,- RealmsMainScreen,- RealmsMainScreen.CloseButton,- RealmsMainScreen.CrossButton,- RealmsMainScreen.Entry,- RealmsMainScreen.NewsButton,- RealmsMainScreen.PendingInvitesButton,- RealmsMainScreen.RealmSelectionList,- RealmsMainScreen.RealmSelectionListEntry,- RealmsMainScreen.RealmSelectionListTrialEntry,- RealmsMainScreen.VisitButtonEntry,- RealmsMainScreen.VisitUrlNotification,- RealmsNotificationsScreen,- RealmsObjectSelectionList,- RealmsParentalConsentScreen,- RealmsPendingInvitesScreen,- RealmsPendingInvitesScreen.PendingInvitationSelectionList,- RealmsPendingInvitesScreen.PendingInvitationSelectionListEntry,- RealmsPlayerScreen,- RealmsPlayerScreen.InvitedObjectSelectionList,- RealmsPlayerScreen.InvitedObjectSelectionListEntry,- RealmsResetNormalWorldScreen,- RealmsResetWorldScreen,- RealmsResetWorldScreen.FrameButton,- RealmsScreen,- RealmsSelectFileToUploadScreen,- RealmsSelectFileToUploadScreen.WorldListEntry,- RealmsSelectFileToUploadScreen.WorldSelectionList,- RealmsSelectWorldTemplateScreen,- RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList,- RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionListEntry,- RealmsSettingsScreen,- RealmsSlotOptionsScreen,- RealmsSlotOptionsScreen.SettingsSlider,- RealmsSubscriptionInfoScreen,- RealmsTermsScreen,- RealmsUploadScreen,- RealmsWorldSlotButton,- RecipeAlternativesWidget,- RecipeAlternativesWidget.AlternativeButtonWidget,- RecipeAlternativesWidget.FurnaceAlternativeButtonWidget,- RecipeBookWidget,- RecipeGroupButtonWidget,- Screen,- ScrollableTextWidget,- ScrollableWidget,- SelectWorldScreen,- ShulkerBoxScreen,- SignEditScreen,- SimpleOption.OptionSliderWidgetImpl,- SimpleOptionsScreen,- SkinOptionsScreen,- SleepingChatScreen,- SliderWidget,- SmithingScreen,- SmokerRecipeBookScreen,- SmokerScreen,- SocialInteractionsPlayerListEntry,- SocialInteractionsPlayerListWidget,- SocialInteractionsScreen,- SoundOptionsScreen,- StatsScreen,- StatsScreen.EntityStatsListWidget,- StatsScreen.EntityStatsListWidget.Entry,- StatsScreen.GeneralStatsListWidget,- StatsScreen.GeneralStatsListWidget.Entry,- StatsScreen.ItemStatsListWidget,- StatsScreen.ItemStatsListWidget.Entry,- StonecutterScreen,- StructureBlockScreen,- SymlinkWarningScreen,- TabButtonWidget,- TabNavigationWidget,- TaskScreen,- TelemetryEventWidget,- TelemetryInfoScreen,- TextFieldWidget,- TexturedButtonWidget,- TextWidget,- TitleScreen,- ToggleButtonWidget,- VideoOptionsScreen,- WarningScreen,- WorldListWidget,- WorldListWidget.Entry,- WorldListWidget.LoadingEntry,- WorldListWidget.WorldEntry
Base GUI interface for handling callbacks related to
 keyboard or mouse actions.
 Mouse coordinate is bounded by the size of the window in
 pixels.
- Mappings:
- Namespace - Name - official - eqt- intermediary - net/minecraft/class_364- named - net/minecraft/client/gui/Element
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondefault booleancharTyped(char chr, int modifiers) Callback for when a character input has been captured.default @Nullable GuiNavigationPathdefault ScreenRectdefault @Nullable GuiNavigationPathgetNavigationPath(GuiNavigation navigation) booleandefault booleanisMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.default booleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.default booleankeyReleased(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.default booleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.default booleanmouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) Callback for when a mouse button drag event has been captured.default voidmouseMoved(double mouseX, double mouseY) Callback for when a mouse move event has been captured.default booleanmouseReleased(double mouseX, double mouseY, int button) Callback for when a mouse button release event has been captured.default booleanmouseScrolled(double mouseX, double mouseY, double amount) Callback for when a mouse button scroll event has been captured.voidsetFocused(boolean focused) Methods inherited from interface net.minecraft.client.gui.navigation.NavigablegetNavigationOrder
- 
Field Details- 
MAX_DOUBLE_CLICK_INTERVALstatic final long MAX_DOUBLE_CLICK_INTERVAL- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - B- Leqt;B:J- intermediary - field_37268- Lnet/minecraft/class_364;field_37268:J- named - MAX_DOUBLE_CLICK_INTERVAL- Lnet/minecraft/client/gui/Element;MAX_DOUBLE_CLICK_INTERVAL:J
 
 
- 
- 
Method Details- 
mouseMoveddefault void mouseMoved(double mouseX, double mouseY) Callback for when a mouse move event has been captured.- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - e- Leqt;e(DD)V- intermediary - method_16014- Lnet/minecraft/class_364;method_16014(DD)V- named - mouseMoved- Lnet/minecraft/client/gui/Element;mouseMoved(DD)V
 
- 
mouseClickeddefault boolean mouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- button- the mouse button number
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqt;a(DDI)Z- intermediary - method_25402- Lnet/minecraft/class_364;method_25402(DDI)Z- named - mouseClicked- Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
 
- 
mouseReleaseddefault boolean mouseReleased(double mouseX, double mouseY, int button) Callback for when a mouse button release event has been captured. The button number is identified by the constants inGLFWclass.- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- button- the mouse button number
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Leqt;b(DDI)Z- intermediary - method_25406- Lnet/minecraft/class_364;method_25406(DDI)Z- named - mouseReleased- Lnet/minecraft/client/gui/Element;mouseReleased(DDI)Z
 
- 
mouseDraggeddefault boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) Callback for when a mouse button drag event has been captured. The button number is identified by the constants inGLFWclass.- Parameters:
- mouseX- the current X coordinate of the mouse
- mouseY- the current Y coordinate of the mouse
- button- the mouse button number
- deltaX- the difference of the current X with the previous X coordinate
- deltaY- the difference of the current Y with the previous Y coordinate
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqt;a(DDIDD)Z- intermediary - method_25403- Lnet/minecraft/class_364;method_25403(DDIDD)Z- named - mouseDragged- Lnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z
 
- 
mouseScrolleddefault boolean mouseScrolled(double mouseX, double mouseY, double amount) Callback for when a mouse button scroll event has been captured.- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- amount- value is- < 0if scrolled down,- > 0if scrolled up
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqt;a(DDD)Z- intermediary - method_25401- Lnet/minecraft/class_364;method_25401(DDD)Z- named - mouseScrolled- Lnet/minecraft/client/gui/Element;mouseScrolled(DDD)Z
 
- 
keyPresseddefault boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Parameters:
- keyCode- the named key code of the event as described in the- GLFWclass
- scanCode- the unique/platform-specific scan code of the keyboard input
- modifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqt;a(III)Z- intermediary - method_25404- Lnet/minecraft/class_364;method_25404(III)Z- named - keyPressed- Lnet/minecraft/client/gui/Element;keyPressed(III)Z
 
- 
keyReleaseddefault boolean keyReleased(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Parameters:
- keyCode- the named key code of the event as described in the- GLFWclass
- scanCode- the unique/platform-specific scan code of the keyboard input
- modifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Leqt;b(III)Z- intermediary - method_16803- Lnet/minecraft/class_364;method_16803(III)Z- named - keyReleased- Lnet/minecraft/client/gui/Element;keyReleased(III)Z
 
- 
charTypeddefault boolean charTyped(char chr, int modifiers) Callback for when a character input has been captured. The key code is identified by the constants inGLFWclass.- Parameters:
- chr- the captured character
- modifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqt;a(CI)Z- intermediary - method_25400- Lnet/minecraft/class_364;method_25400(CI)Z- named - charTyped- Lnet/minecraft/client/gui/Element;charTyped(CI)Z
 
- 
isMouseOverdefault boolean isMouseOver(double mouseX, double mouseY) Checks if the mouse position is within the bound of the element.- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- Returns:
- trueif the mouse is within the bound of the element, otherwise- false
- Mappings:
- Namespace - Name - Mixin selector - official - a_- Leqt;a_(DD)Z- intermediary - method_25405- Lnet/minecraft/class_364;method_25405(DD)Z- named - isMouseOver- Lnet/minecraft/client/gui/Element;isMouseOver(DD)Z
 
- 
setFocusedvoid setFocused(boolean focused) - Mappings:
- Namespace - Name - Mixin selector - official - b_- Leqt;b_(Z)V- intermediary - method_25365- Lnet/minecraft/class_364;method_25365(Z)V- named - setFocused- Lnet/minecraft/client/gui/Element;setFocused(Z)V
 
- 
isFocusedboolean isFocused()- Mappings:
- Namespace - Name - Mixin selector - official - aB_- Leqt;aB_()Z- intermediary - method_25370- Lnet/minecraft/class_364;method_25370()Z- named - isFocused- Lnet/minecraft/client/gui/Element;isFocused()Z
 
- 
getFocusedPath- Mappings:
- Namespace - Name - Mixin selector - official - aF_- Leqt;aF_()Leou;- intermediary - method_48218- Lnet/minecraft/class_364;method_48218()Lnet/minecraft/class_8016;- named - getFocusedPath- Lnet/minecraft/client/gui/Element;getFocusedPath()Lnet/minecraft/client/gui/navigation/GuiNavigationPath;
 
 
-