类 AbstractSelectionList<E extends AbstractSelectionList.Entry<E>>

所有已实现的接口:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
直接已知子类:
ContainerObjectSelectionList, ObjectSelectionList

public abstract class AbstractSelectionList<E extends AbstractSelectionList.Entry<E>> extends AbstractContainerWidget
  • 字段详细资料

  • 构造器详细资料

    • AbstractSelectionList

      public AbstractSelectionList(Minecraft p_93404_, int p_93405_, int p_93406_, int p_93407_, int p_93408_)
    • AbstractSelectionList

      public AbstractSelectionList(Minecraft p_375613_, int p_378036_, int p_378191_, int p_377008_, int p_375798_, int p_377043_)
  • 方法详细资料

    • getSelected

      @Nullable public E getSelected()
    • setSelectedIndex

      public void setSelectedIndex(int p_364551_)
    • setSelected

      public void setSelected(@Nullable E p_93462_)
    • getFirstElement

      public E getFirstElement()
    • getFocused

      @Nullable public E getFocused()
      指定者:
      getFocused 在接口中 ContainerEventHandler
      覆盖:
      getFocused 在类中 AbstractContainerWidget
    • children

      public final List<E> children()
    • clearEntries

      protected void clearEntries()
    • replaceEntries

      public void replaceEntries(Collection<E> p_93470_)
    • getEntry

      protected E getEntry(int p_93501_)
    • addEntry

      protected int addEntry(E p_93487_)
    • addEntryToTop

      protected void addEntryToTop(E p_239858_)
    • removeEntryFromTop

      protected boolean removeEntryFromTop(E p_239046_)
    • getItemCount

      protected int getItemCount()
    • isSelectedItem

      protected boolean isSelectedItem(int p_93504_)
    • getEntryAtPosition

      @Nullable protected final E getEntryAtPosition(double p_93413_, double p_93414_)
    • updateSize

      public void updateSize(int p_336225_, HeaderAndFooterLayout p_331081_)
    • updateSizeAndPosition

      public void updateSizeAndPosition(int p_334988_, int p_333730_, int p_328806_)
    • contentHeight

      protected int contentHeight()
      指定者:
      contentHeight 在类中 AbstractScrollArea
    • renderHeader

      protected void renderHeader(GuiGraphics p_282337_, int p_93444_, int p_93445_)
    • renderDecorations

      protected void renderDecorations(GuiGraphics p_281477_, int p_93459_, int p_93460_)
    • renderWidget

      public void renderWidget(GuiGraphics p_282708_, int p_283242_, int p_282891_, float p_283683_)
      指定者:
      renderWidget 在类中 AbstractWidget
    • renderListSeparators

      protected void renderListSeparators(GuiGraphics p_331270_)
    • renderListBackground

      protected void renderListBackground(GuiGraphics p_333412_)
    • enableScissor

      protected void enableScissor(GuiGraphics p_282811_)
    • centerScrollOn

      protected void centerScrollOn(E p_93495_)
    • ensureVisible

      protected void ensureVisible(E p_93499_)
    • scroll

      private void scroll(int p_93430_)
    • scrollRate

      protected double scrollRate()
      指定者:
      scrollRate 在类中 AbstractScrollArea
    • scrollBarX

      protected int scrollBarX()
      覆盖:
      scrollBarX 在类中 AbstractScrollArea
    • getChildAt

      public Optional<GuiEventListener> getChildAt(double p_376745_, double p_377088_)
    • setFocused

      public void setFocused(@Nullable GuiEventListener p_265738_)
      指定者:
      setFocused 在接口中 ContainerEventHandler
      覆盖:
      setFocused 在类中 AbstractContainerWidget
    • nextEntry

      @Nullable protected E nextEntry(ScreenDirection p_265160_)
    • nextEntry

      @Nullable protected E nextEntry(ScreenDirection p_265210_, Predicate<E> p_265604_)
    • nextEntry

      @Nullable protected E nextEntry(ScreenDirection p_265159_, Predicate<E> p_265109_, @Nullable E p_265379_)
    • renderListItems

      protected void renderListItems(GuiGraphics p_282079_, int p_239229_, int p_239230_, float p_239231_)
    • renderItem

      protected void renderItem(GuiGraphics p_282205_, int p_238966_, int p_238967_, float p_238968_, int p_238969_, int p_238970_, int p_238971_, int p_238972_, int p_238973_)
    • renderSelection

      protected void renderSelection(GuiGraphics p_283589_, int p_240142_, int p_240143_, int p_240144_, int p_240145_, int p_240146_)
    • getRowLeft

      public int getRowLeft()
    • getRowRight

      public int getRowRight()
    • getRowTop

      public int getRowTop(int p_93512_)
    • getRowBottom

      public int getRowBottom(int p_93486_)
    • getRowWidth

      public int getRowWidth()
    • narrationPriority

      public NarratableEntry.NarrationPriority narrationPriority()
      指定者:
      narrationPriority 在接口中 NarratableEntry
      覆盖:
      narrationPriority 在类中 AbstractWidget
    • remove

      @Nullable protected E remove(int p_93515_)
    • removeEntry

      protected boolean removeEntry(E p_93503_)
    • getHovered

      @Nullable protected E getHovered()
    • bindEntryToSelf

      void bindEntryToSelf(AbstractSelectionList.Entry<E> p_93506_)
    • narrateListElementPosition

      protected void narrateListElementPosition(NarrationElementOutput p_168791_, E p_168792_)