类 AbstractScrollArea
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollArea
- 所有已实现的接口:
GuiEventListener
,Renderable
,TabOrderedElement
,LayoutElement
,NarratableEntry
,NarrationSupplier
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
字段概要
字段修饰符和类型字段说明private double
static final int
private static final ResourceLocation
private static final ResourceLocation
private boolean
从类继承的字段 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
-
构造器概要
构造器构造器说明AbstractScrollArea
(int p_377709_, int p_378471_, int p_377440_, int p_376831_, Component p_375489_) -
方法概要
修饰符和类型方法说明protected abstract int
int
boolean
mouseDragged
(double p_378500_, double p_377082_, int p_376241_, double p_375440_, double p_376263_) boolean
mouseScrolled
(double p_377900_, double p_377972_, double p_376192_, double p_378419_) void
onRelease
(double p_376131_, double p_375870_) void
protected void
renderScrollbar
(GuiGraphics p_376117_) double
protected boolean
protected int
protected int
protected int
protected abstract double
void
setScrollAmount
(double p_378348_) boolean
updateScrolling
(double p_377950_, double p_377713_, int p_377339_) 从类继承的方法 net.minecraft.client.gui.components.AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, playButtonClickSound, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, renderWidget, setAlpha, setFGColor, setFocused, 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.GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved
从接口继承的方法 net.minecraft.client.gui.layouts.LayoutElement
setPosition
从接口继承的方法 net.minecraft.client.gui.narration.NarratableEntry
getNarratables
-
字段详细资料
-
SCROLLBAR_WIDTH
public static final int SCROLLBAR_WIDTH- 另请参阅:
-
scrollAmount
private double scrollAmount -
SCROLLER_SPRITE
-
SCROLLER_BACKGROUND_SPRITE
-
scrolling
private boolean scrolling
-
-
构造器详细资料
-
AbstractScrollArea
public AbstractScrollArea(int p_377709_, int p_378471_, int p_377440_, int p_376831_, Component p_375489_)
-
-
方法详细资料
-
mouseScrolled
public boolean mouseScrolled(double p_377900_, double p_377972_, double p_376192_, double p_378419_) -
mouseDragged
public boolean mouseDragged(double p_378500_, double p_377082_, int p_376241_, double p_375440_, double p_376263_) - 指定者:
mouseDragged
在接口中GuiEventListener
- 覆盖:
mouseDragged
在类中AbstractWidget
-
onRelease
public void onRelease(double p_376131_, double p_375870_) - 覆盖:
onRelease
在类中AbstractWidget
-
scrollAmount
public double scrollAmount() -
setScrollAmount
public void setScrollAmount(double p_378348_) -
updateScrolling
public boolean updateScrolling(double p_377950_, double p_377713_, int p_377339_) -
refreshScrollAmount
public void refreshScrollAmount() -
maxScrollAmount
public int maxScrollAmount() -
scrollbarVisible
protected boolean scrollbarVisible() -
scrollerHeight
protected int scrollerHeight() -
scrollBarX
protected int scrollBarX() -
scrollBarY
protected int scrollBarY() -
renderScrollbar
-
contentHeight
protected abstract int contentHeight() -
scrollRate
protected abstract double scrollRate()
-