2022-06-21 14:07:56 -04:00
|
|
|
CLASS net/minecraft/class_7528 net/minecraft/client/gui/widget/ScrollableWidget
|
|
|
|
COMMENT A widget that can be focused and vertically scrolled.
|
|
|
|
FIELD field_39493 FOCUSED_BORDER_COLOR I
|
|
|
|
FIELD field_39494 UNFOCUSED_BORDER_COLOR I
|
|
|
|
FIELD field_39495 BOX_COLOR I
|
|
|
|
FIELD field_39496 PADDING I
|
|
|
|
FIELD field_39497 scrollY D
|
|
|
|
FIELD field_39498 scrollbarDragged Z
|
|
|
|
METHOD method_44381 getPadding ()I
|
|
|
|
METHOD method_44382 setScrollY (D)V
|
|
|
|
ARG 1 scrollY
|
|
|
|
METHOD method_44383 isVisible (II)Z
|
|
|
|
ARG 1 top
|
|
|
|
ARG 2 bottom
|
2023-04-20 10:15:32 -04:00
|
|
|
METHOD method_44384 renderOverlay (Lnet/minecraft/class_332;)V
|
2022-06-21 14:07:56 -04:00
|
|
|
COMMENT Renders overlays that are not scrolled but part of the widget.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This renders the scrollbar by default. Subclasses can override this to
|
|
|
|
COMMENT render other overlays, but {@code super} call is necessary to make sure the scrollbar
|
|
|
|
COMMENT renders when it should.
|
2023-04-21 11:15:10 -04:00
|
|
|
ARG 1 context
|
2022-06-21 14:07:56 -04:00
|
|
|
METHOD method_44385 getPaddingDoubled ()I
|
2023-04-20 10:15:32 -04:00
|
|
|
METHOD method_44386 drawBox (Lnet/minecraft/class_332;)V
|
2022-06-21 14:07:56 -04:00
|
|
|
COMMENT Draws the box that the contents are rendered over, including its borders.
|
2023-04-21 11:15:10 -04:00
|
|
|
ARG 1 context
|
2022-06-21 14:07:56 -04:00
|
|
|
METHOD method_44387 getScrollY ()D
|
|
|
|
METHOD method_44388 isWithinBounds (DD)Z
|
|
|
|
ARG 1 mouseX
|
|
|
|
ARG 3 mouseY
|
2023-04-20 10:15:32 -04:00
|
|
|
METHOD method_44389 renderContents (Lnet/minecraft/class_332;IIF)V
|
2022-06-21 14:07:56 -04:00
|
|
|
COMMENT Renders the scrolled contents. Subclasses must override this. The rendered contents
|
|
|
|
COMMENT may overflow; the caller should trim those using {@link
|
2023-04-22 02:39:21 -04:00
|
|
|
COMMENT net.minecraft.client.gui.DrawContext#enableScissor}.
|
2023-04-21 11:15:10 -04:00
|
|
|
ARG 1 context
|
2022-06-21 14:07:56 -04:00
|
|
|
ARG 2 mouseX
|
|
|
|
ARG 3 mouseY
|
|
|
|
ARG 4 delta
|
|
|
|
METHOD method_44390 getMaxScrollY ()I
|
|
|
|
METHOD method_44391 getContentsHeight ()I
|
|
|
|
COMMENT {@return the total height of the contents}
|
|
|
|
METHOD method_44392 overflows ()Z
|
|
|
|
COMMENT {@return whether the contents overflow and needs a scrollbar}
|
|
|
|
METHOD method_44393 getDeltaYPerScroll ()D
|
|
|
|
METHOD method_44394 getScrollbarThumbHeight ()I
|
|
|
|
METHOD method_44395 getContentsHeightWithPadding ()I
|
2023-04-20 10:15:32 -04:00
|
|
|
METHOD method_44396 drawScrollbar (Lnet/minecraft/class_332;)V
|
2023-04-21 11:15:10 -04:00
|
|
|
ARG 1 context
|