Package net.minecraft.client.gui
Interface ParentElement
- All Superinterfaces:
Element
- All Known Implementing Classes:
AbstractCommandBlockScreen
,AbstractFurnaceScreen
,AbstractInventoryScreen
,AbstractParentElement
,AbstractSignEditScreen
,AbuseReportReasonScreen
,AbuseReportReasonScreen.ReasonListWidget
,AccessibilityOptionsScreen
,AddServerScreen
,AdvancementsScreen
,AlwaysSelectedEntryListWidget
,AnvilScreen
,BackupPromptScreen
,BeaconScreen
,BlastFurnaceScreen
,BookEditScreen
,BookScreen
,BrewingStandScreen
,ButtonListWidget
,ButtonListWidget.ButtonEntry
,CartographyTableScreen
,ChatOptionsScreen
,ChatReportScreen
,ChatReportScreen.DiscardWarningScreen
,ChatScreen
,ChatSelectionScreen
,ChatSelectionScreen.SelectionListWidget
,class_8032
,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
,ExperimentalWarningScreen
,ExperimentalWarningScreen.DetailsScreen
,ExperimentalWarningScreen.DetailsScreen.PackListWidget
,FatalErrorScreen
,ForgingScreen
,FurnaceScreen
,GameMenuScreen
,GameModeSelectionScreen
,GameOptionsScreen
,Generic3x3ContainerScreen
,GenericContainerScreen
,GrindstoneScreen
,HandledScreen
,HangingSignEditScreen
,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
,TelemetryInfoScreen
,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 emp
intermediary net/minecraft/class_4069
named net/minecraft/client/gui/ParentElement
-
Field Summary
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
charTyped
(char chr, int modifiers) Callback for when a character input has been captured.children()
Gets a list of all child GUI elements.default void
hoveredElement
(double mouseX, double mouseY) boolean
default boolean
default boolean
keyPressed
(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.default boolean
keyReleased
(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.default @Nullable class_8016
method_48205
(class_8023 class_8023) private @Nullable class_8016
method_48214
(class_8023.class_8024 class_8024) private @Nullable class_8016
method_48215
(class_8023.class_8026 class_8026) private @Nullable class_8016
method_48217
(class_8030 class_8030, class_8028 class_8028, @Nullable Element element, class_8023 class_8023) default @Nullable class_8016
private @Nullable class_8016
method_48220
(class_8030 class_8030, class_8028 class_8028, @Nullable Element element, class_8023 class_8023) default boolean
mouseClicked
(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.default boolean
mouseDragged
(double mouseX, double mouseY, int button, double deltaX, double deltaY) Callback for when a mouse button drag event has been captured.default boolean
mouseReleased
(double mouseX, double mouseY, int button) Callback for when a mouse button release event has been captured.default boolean
mouseScrolled
(double mouseX, double mouseY, double amount) Callback for when a mouse button scroll event has been captured.void
setDragging
(boolean dragging) default void
setFocused
(boolean bool) void
setFocused
(@Nullable Element focused) Methods inherited from interface net.minecraft.client.gui.Element
isMouseOver, method_48202, mouseMoved
-
Method Details
-
children
Gets a list of all child GUI elements.- Mappings:
Namespace Name Mixin selector official i
Lemp;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
Lemp;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;
-
mouseClicked
default 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 inGLFW
class.- Specified by:
mouseClicked
in interfaceElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lemq;a(DDI)Z
intermediary method_25402
Lnet/minecraft/class_364;method_25402(DDI)Z
named mouseClicked
Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
mouseReleased
default 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 inGLFW
class.- Specified by:
mouseReleased
in interfaceElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lemq;b(DDI)Z
intermediary method_25406
Lnet/minecraft/class_364;method_25406(DDI)Z
named mouseReleased
Lnet/minecraft/client/gui/Element;mouseReleased(DDI)Z
-
mouseDragged
default 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 inGLFW
class.- Specified by:
mouseDragged
in interfaceElement
- Parameters:
mouseX
- the current X coordinate of the mousemouseY
- the current Y coordinate of the mousebutton
- the mouse button numberdeltaX
- the difference of the current X with the previous X coordinatedeltaY
- the difference of the current Y with the previous Y coordinate- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lemq;a(DDIDD)Z
intermediary method_25403
Lnet/minecraft/class_364;method_25403(DDIDD)Z
named mouseDragged
Lnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z
-
isDragging
boolean isDragging()- Mappings:
Namespace Name Mixin selector official an_
Lemp;an_()Z
intermediary method_25397
Lnet/minecraft/class_4069;method_25397()Z
named isDragging
Lnet/minecraft/client/gui/ParentElement;isDragging()Z
-
setDragging
void setDragging(boolean dragging) - Mappings:
Namespace Name Mixin selector official c_
Lemp;c_(Z)V
intermediary method_25398
Lnet/minecraft/class_4069;method_25398(Z)V
named setDragging
Lnet/minecraft/client/gui/ParentElement;setDragging(Z)V
-
mouseScrolled
default boolean mouseScrolled(double mouseX, double mouseY, double amount) Callback for when a mouse button scroll event has been captured.- Specified by:
mouseScrolled
in interfaceElement
- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mouseamount
- value is< 0
if scrolled down,> 0
if scrolled up- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lemq;a(DDD)Z
intermediary method_25401
Lnet/minecraft/class_364;method_25401(DDD)Z
named mouseScrolled
Lnet/minecraft/client/gui/Element;mouseScrolled(DDD)Z
-
keyPressed
default 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 inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lemq;a(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
-
keyReleased
default 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 inGLFW
class.- Specified by:
keyReleased
in interfaceElement
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lemq;b(III)Z
intermediary method_16803
Lnet/minecraft/class_364;method_16803(III)Z
named keyReleased
Lnet/minecraft/client/gui/Element;keyReleased(III)Z
-
charTyped
default boolean charTyped(char chr, int modifiers) Callback for when a character input has been captured. The key code is identified by the constants inGLFW
class.- Specified by:
charTyped
in interfaceElement
- Parameters:
chr
- the captured charactermodifiers
- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lemq;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
Lemp;v()Lemq;
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
Lemp;a(Lemq;)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
-
setFocused
default void setFocused(boolean bool) - Specified by:
setFocused
in interfaceElement
- Mappings:
Namespace Name Mixin selector official b_
Lemq;b_(Z)V
intermediary method_25365
Lnet/minecraft/class_364;method_25365(Z)V
named setFocused
Lnet/minecraft/client/gui/Element;setFocused(Z)V
-
isFocused
default boolean isFocused() -
method_48218
- Specified by:
method_48218
in interfaceElement
- Mappings:
Namespace Name Mixin selector official ap_
Lemq;ap_()Lekz;
intermediary method_48218
Lnet/minecraft/class_364;method_48218()Lnet/minecraft/class_8016;
named method_48218
Lnet/minecraft/client/gui/Element;method_48218()Lnet/minecraft/class_8016;
-
focusOn
- Mappings:
Namespace Name Mixin selector official b
Lemp;b(Lemq;)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
-
method_48205
- Specified by:
method_48205
in interfaceElement
- Mappings:
Namespace Name Mixin selector official a
Lemq;a(Leoh;)Lekz;
intermediary method_48205
Lnet/minecraft/class_364;method_48205(Lnet/minecraft/class_8023;)Lnet/minecraft/class_8016;
named method_48205
Lnet/minecraft/client/gui/Element;method_48205(Lnet/minecraft/class_8023;)Lnet/minecraft/class_8016;
-
method_48215
- Mappings:
Namespace Name Mixin selector official a
Lemp;a(Leoh$c;)Lekz;
intermediary method_48215
Lnet/minecraft/class_4069;method_48215(Lnet/minecraft/class_8023$class_8026;)Lnet/minecraft/class_8016;
named method_48215
Lnet/minecraft/client/gui/ParentElement;method_48215(Lnet/minecraft/class_8023$class_8026;)Lnet/minecraft/class_8016;
-
method_48214
- Mappings:
Namespace Name Mixin selector official a
Lemp;a(Leoh$a;)Lekz;
intermediary method_48214
Lnet/minecraft/class_4069;method_48214(Lnet/minecraft/class_8023$class_8024;)Lnet/minecraft/class_8016;
named method_48214
Lnet/minecraft/client/gui/ParentElement;method_48214(Lnet/minecraft/class_8023$class_8024;)Lnet/minecraft/class_8016;
-
method_48217
@Nullable private @Nullable class_8016 method_48217(class_8030 class_8030, class_8028 class_8028, @Nullable @Nullable Element element, class_8023 class_8023) - Mappings:
Namespace Name Mixin selector official a
Lemp;a(Leol;Leoj;Lemq;Leoh;)Lekz;
intermediary method_48217
Lnet/minecraft/class_4069;method_48217(Lnet/minecraft/class_8030;Lnet/minecraft/class_8028;Lnet/minecraft/class_364;Lnet/minecraft/class_8023;)Lnet/minecraft/class_8016;
named method_48217
Lnet/minecraft/client/gui/ParentElement;method_48217(Lnet/minecraft/class_8030;Lnet/minecraft/class_8028;Lnet/minecraft/client/gui/Element;Lnet/minecraft/class_8023;)Lnet/minecraft/class_8016;
-
method_48220
@Nullable private @Nullable class_8016 method_48220(class_8030 class_8030, class_8028 class_8028, @Nullable @Nullable Element element, class_8023 class_8023) - Mappings:
Namespace Name Mixin selector official b
Lemp;b(Leol;Leoj;Lemq;Leoh;)Lekz;
intermediary method_48220
Lnet/minecraft/class_4069;method_48220(Lnet/minecraft/class_8030;Lnet/minecraft/class_8028;Lnet/minecraft/class_364;Lnet/minecraft/class_8023;)Lnet/minecraft/class_8016;
named method_48220
Lnet/minecraft/client/gui/ParentElement;method_48220(Lnet/minecraft/class_8030;Lnet/minecraft/class_8028;Lnet/minecraft/client/gui/Element;Lnet/minecraft/class_8023;)Lnet/minecraft/class_8016;
-