Class ObjectSelectionList.Entry<E extends ObjectSelectionList.Entry<E>>

java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<E>
net.minecraft.client.gui.components.ObjectSelectionList.Entry<E>
All Implemented Interfaces:
GuiEventListener, TabOrderedElement, NarrationSupplier
Direct Known Subclasses:
AbstractTestScreen.GroupableList.Entry, ChatSelectionScreen.ChatSelectionList.Entry, ConfirmExperimentalFeaturesScreen.DetailsScreen.PackListEntry, CreateBuffetWorldScreen.BiomeList.Entry, CreateFlatWorldScreen.DetailsList.Entry, LanguageSelectScreen.LanguageSelectionList.Entry, LoadingErrorScreen.LoadingEntryList.LoadingMessageEntry, ModListWidget.ModEntry, PresetFlatWorldScreen.PresetsList.Entry, RealmsBackupInfoScreen.BackupInfoListEntry, RealmsMainScreen.Entry, RealmsPendingInvitesScreen.Entry, RealmsSelectFileToUploadScreen.Entry, RealmsSelectWorldTemplateScreen.Entry, ReportReasonSelectionScreen.ReasonSelectionList.Entry, ServerSelectionList.Entry, StatsScreen.GeneralStatisticsList.Entry, StatsScreen.ItemStatisticsList.ItemRow, StatsScreen.MobsStatisticsList.MobRow, TransferableSelectionList.PackEntry, WorldSelectionList.Entry
Enclosing class:
ObjectSelectionList<E extends ObjectSelectionList.Entry<E>>

public abstract static class ObjectSelectionList.Entry<E extends ObjectSelectionList.Entry<E>> extends AbstractSelectionList.Entry<E> implements NarrationSupplier
  • Constructor Details

    • Entry

      public Entry()
  • Method Details

    • getNarration

      public abstract Component getNarration()
    • mouseClicked

      public boolean mouseClicked(double p_331676_, double p_330254_, int p_331536_)
      Description copied from interface: GuiEventListener
      Called when a mouse button is clicked within the GUI element.

      Specified by:
      mouseClicked in interface GuiEventListener
      Parameters:
      p_331676_ - the X coordinate of the mouse.
      p_330254_ - the Y coordinate of the mouse.
      p_331536_ - the button that was clicked.
      Returns:
      true if the event is consumed, false otherwise.
    • updateNarration

      public void updateNarration(NarrationElementOutput p_169044_)
      Description copied from interface: NarrationSupplier
      Updates the narration output with the current narration information.
      Specified by:
      updateNarration in interface NarrationSupplier
      Parameters:
      p_169044_ - the output to update with narration information.