Interface ParentElement

All Superinterfaces:
Element, Navigable
All Known Implementing Classes:
AbstractCommandBlockScreen, AbstractFurnaceScreen, AbstractInventoryScreen, AbstractParentElement, AbstractSignEditScreen, AbuseReportReasonScreen, AbuseReportReasonScreen.ReasonListWidget, AbuseReportTypeScreen, AccessibilityOnboardingScreen, AccessibilityOptionsScreen, AddServerScreen, AdvancementsScreen, AlwaysSelectedEntryListWidget, AnvilScreen, BackupPromptScreen, BeaconScreen, BlastFurnaceScreen, BookEditScreen, BookScreen, BrewingStandScreen, BuyRealmsScreen, CartographyTableScreen, ChatOptionsScreen, ChatReportScreen, ChatScreen, ChatSelectionScreen, ChatSelectionScreen.SelectionListWidget, ClientCommonNetworkHandler.ConfirmServerResourcePackScreen, CommandBlockScreen, ConfirmLinkScreen, ConfirmScreen, ConnectScreen, ContainerWidget, ControlsListWidget, ControlsListWidget.CategoryEntry, ControlsListWidget.Entry, ControlsListWidget.KeyBindingEntry, ControlsOptionsScreen, CrafterScreen, CraftingScreen, CreateWorldScreen, CreativeInventoryScreen, CreditsAndAttributionScreen, CreditsScreen, CustomizeBuffetLevelScreen, CustomizeBuffetLevelScreen.BuffetBiomesListWidget, CustomizeFlatLevelScreen, CustomizeFlatLevelScreen.SuperflatLayersListWidget, DataPackFailureScreen, DeathScreen, DeathScreen.TitleScreenConfirmScreen, 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, ExperimentsScreen, FatalErrorScreen, FontOptionsScreen, 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, OptionListWidget, OptionListWidget.OptionWidgetEntry, OptionListWidget.WidgetEntry, OptionsScreen, OutOfMemoryScreen, PackListWidget, PackScreen, PopupScreen, PresetsScreen, PresetsScreen.SuperflatPresetsListWidget, ProgressScreen, RealmsBackupInfoScreen, RealmsBackupInfoScreen.BackupInfoList, RealmsBackupScreen, RealmsBackupScreen.BackupObjectSelectionList, RealmsBackupScreen.BackupObjectSelectionListEntry, RealmsBrokenWorldScreen, RealmsClientIncompatibleScreen, RealmsConfigureWorldScreen, RealmsConfirmScreen, RealmsCreateRealmScreen, RealmsCreateWorldScreen, RealmsDownloadLatestWorldScreen, RealmsGenericErrorScreen, RealmsInviteScreen, RealmsLongConfirmationScreen, RealmsLongRunningMcoTaskScreen, RealmsLongRunningTickableTaskScreen, RealmsMainScreen, RealmsMainScreen.RealmSelectionList, RealmsNotificationsScreen, RealmsObjectSelectionList, RealmsParentalConsentScreen, RealmsPendingInvitesScreen, RealmsPendingInvitesScreen.PendingInvitationSelectionList, RealmsPlayerScreen, RealmsPlayerScreen.InvitedObjectSelectionList, RealmsPlayerScreen.InvitedObjectSelectionListEntry, RealmsResetNormalWorldScreen, RealmsScreen, RealmsSelectFileToUploadScreen, RealmsSelectFileToUploadScreen.WorldSelectionList, RealmsSelectWorldTemplateScreen, RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList, RealmsSettingsScreen, RealmsSlotOptionsScreen, RealmsSubscriptionInfoScreen, RealmsTermsScreen, RealmsUploadScreen, ReconfiguringScreen, RecoverWorldScreen, ReportScreen, ReportScreen.DiscardWarningScreen, Screen, SelectWorldScreen, ShulkerBoxScreen, SignEditScreen, SimpleOptionsScreen, SkinOptionsScreen, SkinReportScreen, SleepingChatScreen, SmithingScreen, SmokerScreen, SocialInteractionsPlayerListEntry, SocialInteractionsPlayerListWidget, SocialInteractionsScreen, SoundOptionsScreen, StatsScreen, StatsScreen.EntityStatsListWidget, StatsScreen.GeneralStatsListWidget, StatsScreen.ItemStatsListWidget, StonecutterScreen, StructureBlockScreen, SymlinkWarningScreen, TabNavigationWidget, TaskScreen, TelemetryInfoScreen, TitleScreen, UsernameReportScreen, VideoOptionsScreen, WarningScreen, WorldListWidget

@Environment(CLIENT) public interface ParentElement extends Element
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
named net/minecraft/client/gui/ParentElement
intermediary net/minecraft/class_4069
official fjb
  • Method Details

    • children

      List<? extends Element> children()
      Gets a list of all child GUI elements.
      Mappings:
      Namespace Name Mixin selector
      named children Lnet/minecraft/client/gui/ParentElement;children()Ljava/util/List;
      intermediary method_25396 Lnet/minecraft/class_4069;method_25396()Ljava/util/List;
      official aD_ Lfjb;aD_()Ljava/util/List;
    • hoveredElement

      default Optional<Element> hoveredElement(double mouseX, double mouseY)
      Mappings:
      Namespace Name Mixin selector
      named hoveredElement Lnet/minecraft/client/gui/ParentElement;hoveredElement(DD)Ljava/util/Optional;
      intermediary method_19355 Lnet/minecraft/class_4069;method_19355(DD)Ljava/util/Optional;
      official b_ Lfjb;b_(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 in GLFW class.
      Specified by:
      mouseClicked in interface Element
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
      official a Lfjc;a(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 in GLFW class.
      Specified by:
      mouseReleased in interface Element
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseReleased Lnet/minecraft/client/gui/Element;mouseReleased(DDI)Z
      intermediary method_25406 Lnet/minecraft/class_364;method_25406(DDI)Z
      official b Lfjc;b(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 in GLFW class.
      Specified by:
      mouseDragged in 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:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseDragged Lnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z
      intermediary method_25403 Lnet/minecraft/class_364;method_25403(DDIDD)Z
      official a Lfjc;a(DDIDD)Z
    • isDragging

      boolean isDragging()
      Mappings:
      Namespace Name Mixin selector
      named isDragging Lnet/minecraft/client/gui/ParentElement;isDragging()Z
      intermediary method_25397 Lnet/minecraft/class_4069;method_25397()Z
      official aF_ Lfjb;aF_()Z
    • setDragging

      void setDragging(boolean dragging)
      Mappings:
      Namespace Name Mixin selector
      named setDragging Lnet/minecraft/client/gui/ParentElement;setDragging(Z)V
      intermediary method_25398 Lnet/minecraft/class_4069;method_25398(Z)V
      official b Lfjb;b(Z)V
    • mouseScrolled

      default boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount)
      Callback for when a mouse button scroll event has been captured.
      Specified by:
      mouseScrolled in interface Element
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      horizontalAmount - the horizontal scroll amount
      verticalAmount - the vertical scroll amount
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named mouseScrolled Lnet/minecraft/client/gui/Element;mouseScrolled(DDDD)Z
      intermediary method_25401 Lnet/minecraft/class_364;method_25401(DDDD)Z
      official a Lfjc;a(DDDD)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 in GLFW class.
      Specified by:
      keyPressed in interface Element
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      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:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      official a Lfjc;a(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 in GLFW class.
      Specified by:
      keyReleased in interface Element
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      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:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named keyReleased Lnet/minecraft/client/gui/Element;keyReleased(III)Z
      intermediary method_16803 Lnet/minecraft/class_364;method_16803(III)Z
      official c Lfjc;c(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 in GLFW class.
      Specified by:
      charTyped in 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:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named charTyped Lnet/minecraft/client/gui/Element;charTyped(CI)Z
      intermediary method_25400 Lnet/minecraft/class_364;method_25400(CI)Z
      official a Lfjc;a(CI)Z
    • getFocused

      Mappings:
      Namespace Name Mixin selector
      named getFocused Lnet/minecraft/client/gui/ParentElement;getFocused()Lnet/minecraft/client/gui/Element;
      intermediary method_25399 Lnet/minecraft/class_4069;method_25399()Lnet/minecraft/class_364;
      official aG_ Lfjb;aG_()Lfjc;
    • setFocused

      void setFocused(@Nullable @Nullable Element focused)
      Mappings:
      Namespace Name Mixin selector
      named setFocused Lnet/minecraft/client/gui/ParentElement;setFocused(Lnet/minecraft/client/gui/Element;)V
      intermediary method_25395 Lnet/minecraft/class_4069;method_25395(Lnet/minecraft/class_364;)V
      official a Lfjb;a(Lfjc;)V
    • setFocused

      default void setFocused(boolean focused)
      Specified by:
      setFocused in interface Element
      Mappings:
      Namespace Name Mixin selector
      named setFocused Lnet/minecraft/client/gui/Element;setFocused(Z)V
      intermediary method_25365 Lnet/minecraft/class_364;method_25365(Z)V
      official a Lfjc;a(Z)V
    • isFocused

      default boolean isFocused()
      Specified by:
      isFocused in interface Element
      Mappings:
      Namespace Name Mixin selector
      named isFocused Lnet/minecraft/client/gui/Element;isFocused()Z
      intermediary method_25370 Lnet/minecraft/class_364;method_25370()Z
      official aH_ Lfjc;aH_()Z
    • getFocusedPath

      @Nullable default @Nullable GuiNavigationPath getFocusedPath()
      Specified by:
      getFocusedPath in interface Element
      Mappings:
      Namespace Name Mixin selector
      named getFocusedPath Lnet/minecraft/client/gui/Element;getFocusedPath()Lnet/minecraft/client/gui/navigation/GuiNavigationPath;
      intermediary method_48218 Lnet/minecraft/class_364;method_48218()Lnet/minecraft/class_8016;
      official aI_ Lfjc;aI_()Lfgq;
    • getNavigationPath

      @Nullable default @Nullable GuiNavigationPath getNavigationPath(GuiNavigation navigation)
      Specified by:
      getNavigationPath in interface Element
      Mappings:
      Namespace Name Mixin selector
      named getNavigationPath Lnet/minecraft/client/gui/Element;getNavigationPath(Lnet/minecraft/client/gui/navigation/GuiNavigation;)Lnet/minecraft/client/gui/navigation/GuiNavigationPath;
      intermediary method_48205 Lnet/minecraft/class_364;method_48205(Lnet/minecraft/class_8023;)Lnet/minecraft/class_8016;
      official a Lfjc;a(Lfli;)Lfgq;
    • computeNavigationPath

      @Nullable private @Nullable GuiNavigationPath computeNavigationPath(GuiNavigation.Tab navigation)
      Mappings:
      Namespace Name Mixin selector
      named computeNavigationPath Lnet/minecraft/client/gui/ParentElement;computeNavigationPath(Lnet/minecraft/client/gui/navigation/GuiNavigation$Tab;)Lnet/minecraft/client/gui/navigation/GuiNavigationPath;
      intermediary method_48215 Lnet/minecraft/class_4069;method_48215(Lnet/minecraft/class_8023$class_8026;)Lnet/minecraft/class_8016;
      official a Lfjb;a(Lfli$c;)Lfgq;
    • computeNavigationPath

      @Nullable private @Nullable GuiNavigationPath computeNavigationPath(GuiNavigation.Arrow navigation)
      Mappings:
      Namespace Name Mixin selector
      named computeNavigationPath Lnet/minecraft/client/gui/ParentElement;computeNavigationPath(Lnet/minecraft/client/gui/navigation/GuiNavigation$Arrow;)Lnet/minecraft/client/gui/navigation/GuiNavigationPath;
      intermediary method_48214 Lnet/minecraft/class_4069;method_48214(Lnet/minecraft/class_8023$class_8024;)Lnet/minecraft/class_8016;
      official a Lfjb;a(Lfli$a;)Lfgq;
    • computeChildPath

      @Nullable private @Nullable GuiNavigationPath computeChildPath(ScreenRect focus, NavigationDirection direction, @Nullable @Nullable Element focused, GuiNavigation navigation)
      Mappings:
      Namespace Name Mixin selector
      named computeChildPath Lnet/minecraft/client/gui/ParentElement;computeChildPath(Lnet/minecraft/client/gui/ScreenRect;Lnet/minecraft/client/gui/navigation/NavigationDirection;Lnet/minecraft/client/gui/Element;Lnet/minecraft/client/gui/navigation/GuiNavigation;)Lnet/minecraft/client/gui/navigation/GuiNavigationPath;
      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;
      official a Lfjb;a(Lflm;Lflk;Lfjc;Lfli;)Lfgq;
    • computeInitialChildPath

      @Nullable private @Nullable GuiNavigationPath computeInitialChildPath(ScreenRect focus, NavigationDirection direction, @Nullable @Nullable Element focused, GuiNavigation navigation)
      Mappings:
      Namespace Name Mixin selector
      named computeInitialChildPath Lnet/minecraft/client/gui/ParentElement;computeInitialChildPath(Lnet/minecraft/client/gui/ScreenRect;Lnet/minecraft/client/gui/navigation/NavigationDirection;Lnet/minecraft/client/gui/Element;Lnet/minecraft/client/gui/navigation/GuiNavigation;)Lnet/minecraft/client/gui/navigation/GuiNavigationPath;
      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;
      official b Lfjb;b(Lflm;Lflk;Lfjc;Lfli;)Lfgq;