Package net.minecraft.client.gui
Interface ParentElement
- All Superinterfaces:
- Element
- All Known Implementing Classes:
- AbstractCommandBlockScreen,- AbstractFurnaceScreen,- AbstractInventoryScreen,- AbstractParentElement,- AbuseReportReasonScreen,- AbuseReportReasonScreen.ReasonListWidget,- AccessibilityOptionsScreen,- AddServerScreen,- AdvancementsScreen,- AlwaysSelectedEntryListWidget,- AnvilScreen,- BackupPromptScreen,- BeaconScreen,- BlastFurnaceScreen,- BookEditScreen,- BookScreen,- BrewingStandScreen,- ButtonListWidget,- ButtonListWidget.ButtonEntry,- CartographyTableScreen,- ChatOptionsScreen,- ChatPreviewWarningScreen,- ChatReportScreen,- ChatReportScreen.DiscardWarningScreen,- ChatScreen,- ChatSelectionScreen,- ChatSelectionScreen.SelectionListWidget,- CommandBlockScreen,- ConfirmLinkScreen,- ConfirmScreen,- ConnectScreen,- ControlsListWidget,- ControlsListWidget.CategoryEntry,- ControlsListWidget.Entry,- ControlsListWidget.KeyBindingEntry,- ControlsOptionsScreen,- CraftingScreen,- CreateWorldScreen,- CreativeInventoryScreen,- CreditsScreen,- CustomizeBuffetLevelScreen,- CustomizeBuffetLevelScreen.BuffetBiomesListWidget,- CustomizeFlatLevelScreen,- CustomizeFlatLevelScreen.SuperflatLayersListWidget,- DatapackFailureScreen,- DeathScreen,- DemoScreen,- DialogScreen,- DirectConnectScreen,- DisconnectedRealmsScreen,- DisconnectedScreen,- DownloadingTerrainScreen,- EditGameRulesScreen,- EditGameRulesScreen.AbstractRuleWidget,- EditGameRulesScreen.BooleanRuleWidget,- EditGameRulesScreen.IntRuleWidget,- EditGameRulesScreen.NamedRuleWidget,- EditGameRulesScreen.RuleCategoryWidget,- EditGameRulesScreen.RuleListWidget,- EditWorldScreen,- ElementListWidget,- ElementListWidget.Entry,- EnchantmentScreen,- EntryListWidget,- FatalErrorScreen,- ForgingScreen,- FurnaceScreen,- GameMenuScreen,- GameModeSelectionScreen,- GameOptionsScreen,- Generic3x3ContainerScreen,- GenericContainerScreen,- GrindstoneScreen,- HandledScreen,- HopperScreen,- HorseScreen,- InventoryScreen,- JigsawBlockScreen,- KeybindsScreen,- LanguageOptionsScreen,- LanguageOptionsScreen.LanguageSelectionListWidget,- LecternScreen,- LevelLoadingScreen,- LoomScreen,- MerchantScreen,- MessageScreen,- MinecartCommandBlockScreen,- MouseOptionsScreen,- MultiplayerScreen,- MultiplayerServerListWidget,- MultiplayerWarningScreen,- NoticeScreen,- OnlineOptionsScreen,- OpenToLanScreen,- OptimizeWorldScreen,- OptionsScreen,- OutOfMemoryScreen,- PackListWidget,- PackScreen,- PresetsScreen,- PresetsScreen.SuperflatPresetsListWidget,- ProgressScreen,- Realms32BitWarningScreen,- RealmsBackupInfoScreen,- RealmsBackupInfoScreen.BackupInfoList,- RealmsBackupScreen,- RealmsBackupScreen.BackupObjectSelectionList,- RealmsBrokenWorldScreen,- RealmsClientOutdatedScreen,- RealmsConfigureWorldScreen,- RealmsConfirmScreen,- RealmsCreateRealmScreen,- RealmsDownloadLatestWorldScreen,- RealmsGenericErrorScreen,- RealmsInviteScreen,- RealmsLongConfirmationScreen,- RealmsLongRunningMcoTaskScreen,- RealmsMainScreen,- RealmsMainScreen.RealmSelectionList,- RealmsNotificationsScreen,- RealmsObjectSelectionList,- RealmsParentalConsentScreen,- RealmsPendingInvitesScreen,- RealmsPendingInvitesScreen.PendingInvitationSelectionList,- RealmsPlayerScreen,- RealmsPlayerScreen.InvitedObjectSelectionList,- RealmsResetNormalWorldScreen,- RealmsResetWorldScreen,- RealmsScreen,- RealmsSelectFileToUploadScreen,- RealmsSelectFileToUploadScreen.WorldSelectionList,- RealmsSelectWorldTemplateScreen,- RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList,- RealmsSettingsScreen,- RealmsSlotOptionsScreen,- RealmsSubscriptionInfoScreen,- RealmsTermsScreen,- RealmsUploadScreen,- Screen,- SelectWorldScreen,- ShulkerBoxScreen,- SignEditScreen,- SimpleOptionsScreen,- SkinOptionsScreen,- SleepingChatScreen,- SmithingScreen,- SmokerScreen,- SocialInteractionsPlayerListEntry,- SocialInteractionsPlayerListWidget,- SocialInteractionsScreen,- SoundOptionsScreen,- StatsScreen,- StatsScreen.EntityStatsListWidget,- StatsScreen.GeneralStatsListWidget,- StatsScreen.ItemStatsListWidget,- StonecutterScreen,- StructureBlockScreen,- TaskScreen,- TitleScreen,- VideoOptionsScreen,- WarningScreen,- WorldListWidget
A GUI interface which handles keyboard and mouse callbacks for child GUI elements.
 The implementation of a parent element can decide whether a child element receives keyboard and mouse callbacks.
- Mappings:
- Namespace - Name - official - eiq- intermediary - net/minecraft/class_4069- named - net/minecraft/client/gui/ParentElement
- 
Field SummaryFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Method SummaryModifier and TypeMethodDescriptiondefault booleanchangeFocus(boolean lookForwards) Changes the focusing element by cycling to the next/previous element.default booleancharTyped(char chr, int modifiers) Callback for when a character input has been captured.children()Gets a list of all child GUI elements.default voidhoveredElement(double mouseX, double mouseY) booleandefault 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 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.voidsetDragging(boolean dragging) voidsetFocused(@Nullable Element focused) default voidsetInitialFocus(@Nullable Element element) Methods inherited from interface net.minecraft.client.gui.ElementisMouseOver, mouseMoved
- 
Method Details- 
childrenGets a list of all child GUI elements.- Mappings:
- Namespace - Name - Mixin selector - official - i- Leiq;i()Ljava/util/List;- intermediary - method_25396- Lnet/minecraft/class_4069;method_25396()Ljava/util/List;- named - children- Lnet/minecraft/client/gui/ParentElement;children()Ljava/util/List;
 
- 
hoveredElement- Mappings:
- Namespace - Name - Mixin selector - official - d- Leiq;d(DD)Ljava/util/Optional;- intermediary - method_19355- Lnet/minecraft/class_4069;method_19355(DD)Ljava/util/Optional;- named - hoveredElement- Lnet/minecraft/client/gui/ParentElement;hoveredElement(DD)Ljava/util/Optional;
 
- 
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.- Specified by:
- mouseClickedin interface- Element
- 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- Leir;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.- Specified by:
- mouseReleasedin interface- Element
- 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- Leir;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.- Specified by:
- mouseDraggedin interface- Element
- 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- Leir;a(DDIDD)Z- intermediary - method_25403- Lnet/minecraft/class_364;method_25403(DDIDD)Z- named - mouseDragged- Lnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z
 
- 
isDraggingboolean isDragging()- Mappings:
- Namespace - Name - Mixin selector - official - ah_- Leiq;ah_()Z- intermediary - method_25397- Lnet/minecraft/class_4069;method_25397()Z- named - isDragging- Lnet/minecraft/client/gui/ParentElement;isDragging()Z
 
- 
setDraggingvoid setDragging(boolean dragging) - Mappings:
- Namespace - Name - Mixin selector - official - b_- Leiq;b_(Z)V- intermediary - method_25398- Lnet/minecraft/class_4069;method_25398(Z)V- named - setDragging- Lnet/minecraft/client/gui/ParentElement;setDragging(Z)V
 
- 
mouseScrolleddefault boolean mouseScrolled(double mouseX, double mouseY, double amount) Callback for when a mouse button scroll event has been captured.- Specified by:
- mouseScrolledin interface- Element
- 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- Leir;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.- Specified by:
- keyPressedin interface- Element
- 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- Leir;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.- Specified by:
- keyReleasedin interface- Element
- 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- Leir;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.- Specified by:
- charTypedin interface- Element
- 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- Leir;a(CI)Z- intermediary - method_25400- Lnet/minecraft/class_364;method_25400(CI)Z- named - charTyped- Lnet/minecraft/client/gui/Element;charTyped(CI)Z
 
- 
getFocused- Mappings:
- Namespace - Name - Mixin selector - official - v- Leiq;v()Leir;- intermediary - method_25399- Lnet/minecraft/class_4069;method_25399()Lnet/minecraft/class_364;- named - getFocused- Lnet/minecraft/client/gui/ParentElement;getFocused()Lnet/minecraft/client/gui/Element;
 
- 
setFocused- Mappings:
- Namespace - Name - Mixin selector - official - a- Leiq;a(Leir;)V- intermediary - method_25395- Lnet/minecraft/class_4069;method_25395(Lnet/minecraft/class_364;)V- named - setFocused- Lnet/minecraft/client/gui/ParentElement;setFocused(Lnet/minecraft/client/gui/Element;)V
 
- 
setInitialFocus- Mappings:
- Namespace - Name - Mixin selector - official - b- Leiq;b(Leir;)V- intermediary - method_20085- Lnet/minecraft/class_4069;method_20085(Lnet/minecraft/class_364;)V- named - setInitialFocus- Lnet/minecraft/client/gui/ParentElement;setInitialFocus(Lnet/minecraft/client/gui/Element;)V
 
- 
focusOn- Mappings:
- Namespace - Name - Mixin selector - official - c- Leiq;c(Leir;)V- intermediary - method_20086- Lnet/minecraft/class_4069;method_20086(Lnet/minecraft/class_364;)V- named - focusOn- Lnet/minecraft/client/gui/ParentElement;focusOn(Lnet/minecraft/client/gui/Element;)V
 
- 
changeFocusdefault boolean changeFocus(boolean lookForwards) Changes the focusing element by cycling to the next/previous element. This action is done typically when the user has pressed the 'Tab' or 'Ctrl+Tab' key.- Specified by:
- changeFocusin interface- Element
- Parameters:
- lookForwards-- trueto cycle forwards, otherwise cycle backwards
- Returns:
- trueto indicate that the event handling is successful/valid
- Mappings:
- Namespace - Name - Mixin selector - official - b- Leir;b(Z)Z- intermediary - method_25407- Lnet/minecraft/class_364;method_25407(Z)Z- named - changeFocus- Lnet/minecraft/client/gui/Element;changeFocus(Z)Z
 
 
-