Class ScrollableLayout
java.lang.Object
net.minecraft.client.gui.components.ScrollableLayout
- All Implemented Interfaces:
Layout,LayoutElement
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ScrollableLayout.Container(package private) final Layoutprivate intprivate intprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintintgetWidth()intgetX()intgetY()voidsetMaxHeight(int pMaxHeight) voidsetMinWidth(int pMinWidth) voidsetX(int p_425725_) voidsetY(int p_426034_) voidvisitChildren(Consumer<LayoutElement> p_425954_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.layouts.Layout
visitWidgetsMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
getRectangle, setPosition
-
Field Details
-
SCROLLBAR_SPACING
private static final int SCROLLBAR_SPACING- See Also:
-
SCROLLBAR_RESERVE
private static final int SCROLLBAR_RESERVE- See Also:
-
-
container
-
minWidth
private int minWidth -
maxHeight
private int maxHeight
-
-
Constructor Details
-
ScrollableLayout
-
-
Method Details
-
setMinWidth
public void setMinWidth(int pMinWidth) -
setMaxHeight
public void setMaxHeight(int pMaxHeight) -
arrangeElements
public void arrangeElements()- Specified by:
arrangeElementsin interfaceLayout
-
visitChildren
- Specified by:
visitChildrenin interfaceLayout
-
setX
public void setX(int p_425725_) - Specified by:
setXin interfaceLayoutElement
-
setY
public void setY(int p_426034_) - Specified by:
setYin interfaceLayoutElement
-
getX
public int getX()- Specified by:
getXin interfaceLayoutElement
-
getY
public int getY()- Specified by:
getYin interfaceLayoutElement
-
getWidth
public int getWidth()- Specified by:
getWidthin interfaceLayoutElement
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceLayoutElement
-