类 AbstractSelectionList<E extends AbstractSelectionList.Entry<E>>
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.components.AbstractSelectionList<E>
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,NarratableEntry
,NarrationSupplier
public abstract class AbstractSelectionList<E extends AbstractSelectionList.Entry<E>>
extends AbstractContainerEventHandler
implements Renderable, NarratableEntry
-
嵌套类概要
嵌套类修饰符和类型类说明protected static class
(专用程序包) class
从接口继承的嵌套类/接口 net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
字段概要
字段修饰符和类型字段说明protected boolean
protected int
protected int
private E
protected final int
protected final Minecraft
private boolean
private boolean
private boolean
private boolean
private double
private boolean
private E
protected int
protected int
protected int
protected int
protected int
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器构造器说明AbstractSelectionList
(Minecraft pMinecraft, int pWidth, int pHeight, int pY0, int pY1, int pItemHeight) -
方法概要
修饰符和类型方法说明protected int
protected void
addEntryToTop
(E pEntry) (专用程序包) void
bindEntryToSelf
(AbstractSelectionList.Entry<E> pEntry) protected void
centerScrollOn
(E pEntry) children()
protected void
protected void
clickedHeader
(int pMouseX, int pMouseY) protected void
enableScissor
(GuiGraphics pGuiGraphics) protected void
ensureVisible
(E pEntry) int
protected E
getEntry
(int pIndex) protected final E
getEntryAtPosition
(double pMouseX, double pMouseY) int
protected E
protected int
int
getLeft()
protected int
int
int
getRight()
protected int
getRowBottom
(int pIndex) int
int
protected int
getRowTop
(int pIndex) int
double
protected int
int
int
getTop()
int
getWidth()
boolean
isMouseOver
(double pMouseX, double pMouseY) protected boolean
isSelectedItem
(int pIndex) boolean
mouseClicked
(double pMouseX, double pMouseY, int pButton) boolean
mouseDragged
(double pMouseX, double pMouseY, int pButton, double pDragX, double pDragY) boolean
mouseReleased
(double pMouseX, double pMouseY, int pButton) boolean
mouseScrolled
(double pMouseX, double pMouseY, double pDelta) protected void
narrateListElementPosition
(NarrationElementOutput pNarrationElementOutput, E pEntry) protected E
nextEntry
(ScreenDirection pDirection) protected E
nextEntry
(ScreenDirection pDirection, Predicate<E> pPredicate) protected E
nextEntry
(ScreenDirection pDirection, Predicate<E> pPredicate, E p_265379_) protected E
remove
(int pIndex) protected boolean
removeEntry
(E pEntry) protected boolean
removeEntryFromTop
(E pEntry) void
render
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) protected void
renderBackground
(GuiGraphics pGuiGraphics) protected void
renderDecorations
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY) protected void
renderHeader
(GuiGraphics pGuiGraphics, int pX, int pY) protected void
renderItem
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick, int pIndex, int pLeft, int pTop, int pWidth, int pHeight) protected void
renderList
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) protected void
renderSelection
(GuiGraphics pGuiGraphics, int pTop, int pWidth, int pHeight, int pOuterColor, int pInnerColor) protected void
replaceEntries
(Collection<E> pEntries) private void
scroll
(int pScroll) void
setFocused
(GuiEventListener pListener) void
setLeftPos
(int pX0) void
setRenderBackground
(boolean pRenderBackground) protected void
setRenderHeader
(boolean pRenderHeader, int pHeaderHeight) void
setRenderSelection
(boolean pRenderSelection) void
setRenderTopAndBottom
(boolean pRenderTopAndButton) void
setScrollAmount
(double pScroll) void
setSelected
(E pSelected) protected void
updateScrollingState
(double pMouseX, double pMouseY, int pButton) void
updateSize
(int pWidth, int pHeight, int pY0, int pY1) 从类继承的方法 net.minecraft.client.gui.components.events.AbstractContainerEventHandler
isDragging, setDragging
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, magicalSpecialHackyFocus, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
从接口继承的方法 net.minecraft.client.gui.narration.NarratableEntry
isActive
从接口继承的方法 net.minecraft.client.gui.narration.NarrationSupplier
updateNarration
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
minecraft
-
itemHeight
protected final int itemHeight -
children
-
width
protected int width -
height
protected int height -
y0
protected int y0 -
y1
protected int y1 -
x1
protected int x1 -
x0
protected int x0 -
centerListVertically
protected boolean centerListVertically -
scrollAmount
private double scrollAmount -
renderSelection
private boolean renderSelection -
renderHeader
private boolean renderHeader -
headerHeight
protected int headerHeight -
scrolling
private boolean scrolling -
selected
-
renderBackground
private boolean renderBackground -
renderTopAndBottom
private boolean renderTopAndBottom -
hovered
-
-
构造器详细资料
-
AbstractSelectionList
public AbstractSelectionList(Minecraft pMinecraft, int pWidth, int pHeight, int pY0, int pY1, int pItemHeight)
-
-
方法详细资料
-
setRenderSelection
public void setRenderSelection(boolean pRenderSelection) -
setRenderHeader
protected void setRenderHeader(boolean pRenderHeader, int pHeaderHeight) -
getRowWidth
public int getRowWidth() -
getSelected
-
setSelected
-
getFirstElement
-
setRenderBackground
public void setRenderBackground(boolean pRenderBackground) -
setRenderTopAndBottom
public void setRenderTopAndBottom(boolean pRenderTopAndButton) -
getFocused
- 指定者:
getFocused
在接口中ContainerEventHandler
- 覆盖:
getFocused
在类中AbstractContainerEventHandler
-
children
- 指定者:
children
在接口中ContainerEventHandler
-
clearEntries
protected void clearEntries() -
replaceEntries
-
getEntry
-
addEntry
-
addEntryToTop
-
removeEntryFromTop
-
getItemCount
protected int getItemCount() -
isSelectedItem
protected boolean isSelectedItem(int pIndex) -
getEntryAtPosition
-
updateSize
public void updateSize(int pWidth, int pHeight, int pY0, int pY1) -
setLeftPos
public void setLeftPos(int pX0) -
getMaxPosition
protected int getMaxPosition() -
clickedHeader
protected void clickedHeader(int pMouseX, int pMouseY) -
renderHeader
-
renderBackground
-
renderDecorations
-
render
- 指定者:
render
在接口中Renderable
-
enableScissor
-
centerScrollOn
-
ensureVisible
-
scroll
private void scroll(int pScroll) -
getScrollAmount
public double getScrollAmount() -
setScrollAmount
public void setScrollAmount(double pScroll) -
getMaxScroll
public int getMaxScroll() -
getScrollBottom
public int getScrollBottom() -
updateScrollingState
protected void updateScrollingState(double pMouseX, double pMouseY, int pButton) -
getScrollbarPosition
protected int getScrollbarPosition() -
mouseClicked
public boolean mouseClicked(double pMouseX, double pMouseY, int pButton) - 指定者:
mouseClicked
在接口中ContainerEventHandler
- 指定者:
mouseClicked
在接口中GuiEventListener
-
mouseReleased
public boolean mouseReleased(double pMouseX, double pMouseY, int pButton) - 指定者:
mouseReleased
在接口中ContainerEventHandler
- 指定者:
mouseReleased
在接口中GuiEventListener
-
mouseDragged
public boolean mouseDragged(double pMouseX, double pMouseY, int pButton, double pDragX, double pDragY) - 指定者:
mouseDragged
在接口中ContainerEventHandler
- 指定者:
mouseDragged
在接口中GuiEventListener
-
mouseScrolled
public boolean mouseScrolled(double pMouseX, double pMouseY, double pDelta) - 指定者:
mouseScrolled
在接口中ContainerEventHandler
- 指定者:
mouseScrolled
在接口中GuiEventListener
-
setFocused
- 指定者:
setFocused
在接口中ContainerEventHandler
- 覆盖:
setFocused
在类中AbstractContainerEventHandler
-
isMouseOver
public boolean isMouseOver(double pMouseX, double pMouseY) - 指定者:
isMouseOver
在接口中GuiEventListener
-
renderList
-
renderItem
protected void renderItem(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick, int pIndex, int pLeft, int pTop, int pWidth, int pHeight) -
renderSelection
protected void renderSelection(GuiGraphics pGuiGraphics, int pTop, int pWidth, int pHeight, int pOuterColor, int pInnerColor) -
getRowLeft
public int getRowLeft() -
getRowRight
public int getRowRight() -
getRowTop
protected int getRowTop(int pIndex) -
getRowBottom
protected int getRowBottom(int pIndex) -
narrationPriority
- 指定者:
narrationPriority
在接口中NarratableEntry
-
remove
-
removeEntry
-
getHovered
-
bindEntryToSelf
-
narrateListElementPosition
-
getRectangle
- 指定者:
getRectangle
在接口中GuiEventListener
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getTop
public int getTop() -
getBottom
public int getBottom() -
getLeft
public int getLeft() -
getRight
public int getRight()
-