类 AbstractSelectionList<E extends AbstractSelectionList.Entry<E>>
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollArea
net.minecraft.client.gui.components.AbstractContainerWidget
net.minecraft.client.gui.components.AbstractSelectionList<E>
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
public abstract class AbstractSelectionList<E extends AbstractSelectionList.Entry<E>>
extends AbstractContainerWidget
-
嵌套类概要
嵌套类修饰符和类型类说明protected static class
(专用程序包) class
从接口继承的嵌套类/接口 net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
字段概要
字段修饰符和类型字段说明protected boolean
protected int
private E
private static final ResourceLocation
protected final int
private static final ResourceLocation
protected final Minecraft
private boolean
private E
从类继承的字段 net.minecraft.client.gui.components.AbstractScrollArea
SCROLLBAR_WIDTH
从类继承的字段 net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器构造器说明AbstractSelectionList
(Minecraft p_93404_, int p_93405_, int p_93406_, int p_93407_, int p_93408_) AbstractSelectionList
(Minecraft p_375613_, int p_378036_, int p_378191_, int p_377008_, int p_375798_, int p_377043_) -
方法概要
修饰符和类型方法说明protected int
protected void
addEntryToTop
(E p_239858_) (专用程序包) void
bindEntryToSelf
(AbstractSelectionList.Entry<E> p_93506_) protected void
centerScrollOn
(E p_93495_) children()
protected void
protected int
protected void
enableScissor
(GuiGraphics p_282811_) protected void
ensureVisible
(E p_93499_) getChildAt
(double p_376745_, double p_377088_) protected E
getEntry
(int p_93501_) protected final E
getEntryAtPosition
(double p_93413_, double p_93414_) protected E
protected int
int
getRowBottom
(int p_93486_) int
int
int
getRowTop
(int p_93512_) int
protected boolean
isSelectedItem
(int p_93504_) protected void
narrateListElementPosition
(NarrationElementOutput p_168791_, E p_168792_) protected E
nextEntry
(ScreenDirection p_265160_) protected E
nextEntry
(ScreenDirection p_265210_, Predicate<E> p_265604_) protected E
nextEntry
(ScreenDirection p_265159_, Predicate<E> p_265109_, E p_265379_) protected E
remove
(int p_93515_) protected boolean
removeEntry
(E p_93503_) protected boolean
removeEntryFromTop
(E p_239046_) protected void
renderDecorations
(GuiGraphics p_281477_, int p_93459_, int p_93460_) protected void
renderHeader
(GuiGraphics p_282337_, int p_93444_, int p_93445_) 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_) protected void
renderListBackground
(GuiGraphics p_333412_) protected void
renderListItems
(GuiGraphics p_282079_, int p_239229_, int p_239230_, float p_239231_) protected void
renderListSeparators
(GuiGraphics p_331270_) protected void
renderSelection
(GuiGraphics p_283589_, int p_240142_, int p_240143_, int p_240144_, int p_240145_, int p_240146_) void
renderWidget
(GuiGraphics p_282708_, int p_283242_, int p_282891_, float p_283683_) void
replaceEntries
(Collection<E> p_93470_) private void
scroll
(int p_93430_) protected int
protected double
void
setFocused
(GuiEventListener p_265738_) void
setSelected
(E p_93462_) void
setSelectedIndex
(int p_364551_) void
updateSize
(int p_336225_, HeaderAndFooterLayout p_331081_) void
updateSizeAndPosition
(int p_334988_, int p_333730_, int p_328806_) 从类继承的方法 net.minecraft.client.gui.components.AbstractContainerWidget
isDragging, isFocused, mouseClicked, mouseDragged, mouseReleased, nextFocusPath, setDragging, setFocused
从类继承的方法 net.minecraft.client.gui.components.AbstractScrollArea
maxScrollAmount, mouseScrolled, onRelease, refreshScrollAmount, renderScrollbar, scrollAmount, scrollbarVisible, scrollBarY, scrollerHeight, setScrollAmount, updateScrolling
从类继承的方法 net.minecraft.client.gui.components.AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, onClick, onDrag, playButtonClickSound, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, updateWidgetNarration, visitWidgets, wrapDefaultNarrationMessage
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getCurrentFocusPath, keyPressed, keyReleased, mouseScrolled
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, getRectangle, isMouseOver, mouseMoved
从接口继承的方法 net.minecraft.client.gui.layouts.LayoutElement
setPosition
从接口继承的方法 net.minecraft.client.gui.narration.NarratableEntry
getNarratables
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
MENU_LIST_BACKGROUND
-
INWORLD_MENU_LIST_BACKGROUND
-
minecraft
-
itemHeight
protected final int itemHeight -
children
-
centerListVertically
protected boolean centerListVertically -
renderHeader
private boolean renderHeader -
headerHeight
protected int headerHeight -
selected
-
hovered
-
-
构造器详细资料
-
方法详细资料
-
getSelected
-
setSelectedIndex
public void setSelectedIndex(int p_364551_) -
setSelected
-
getFirstElement
-
getFocused
- 指定者:
getFocused
在接口中ContainerEventHandler
- 覆盖:
getFocused
在类中AbstractContainerWidget
-
children
-
clearEntries
protected void clearEntries() -
replaceEntries
-
getEntry
-
addEntry
-
addEntryToTop
-
removeEntryFromTop
-
getItemCount
protected int getItemCount() -
isSelectedItem
protected boolean isSelectedItem(int p_93504_) -
getEntryAtPosition
-
updateSizeAndPosition
public void updateSizeAndPosition(int p_334988_, int p_333730_, int p_328806_) -
contentHeight
protected int contentHeight()- 指定者:
contentHeight
在类中AbstractScrollArea
-
renderHeader
-
renderDecorations
-
renderWidget
- 指定者:
renderWidget
在类中AbstractWidget
-
renderListSeparators
-
renderListBackground
-
enableScissor
-
centerScrollOn
-
ensureVisible
-
scroll
private void scroll(int p_93430_) -
scrollRate
protected double scrollRate()- 指定者:
scrollRate
在类中AbstractScrollArea
-
scrollBarX
protected int scrollBarX()- 覆盖:
scrollBarX
在类中AbstractScrollArea
-
getChildAt
-
setFocused
- 指定者:
setFocused
在接口中ContainerEventHandler
- 覆盖:
setFocused
在类中AbstractContainerWidget
-
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
- 指定者:
narrationPriority
在接口中NarratableEntry
- 覆盖:
narrationPriority
在类中AbstractWidget
-
remove
-
removeEntry
-
getHovered
-
bindEntryToSelf
-
narrateListElementPosition
-