Class ScrollableLayout
java.lang.Object
net.minecraft.client.gui.components.ScrollableLayout
- All Implemented Interfaces:
Layout, LayoutElement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ScrollableLayout.Containerprivate final Layoutprivate static final intprivate intprivate intprivate intprivate final ScrollableLayout.ReserveStrategyprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintintgetWidth()intgetX()intgetY()voidsetMaxHeight(int maxHeight) voidsetMinHeight(int minHeight) voidsetMinWidth(int minWidth) voidsetX(int x) voidsetY(int y) voidvisitChildren(Consumer<LayoutElement> layoutElementVisitor) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Layout
visitWidgetsMethods inherited from interface LayoutElement
getRectangle, setPosition
-
Field Details
-
DEFAULT_SCROLLBAR_SPACING
private static final int DEFAULT_SCROLLBAR_SPACING- See Also:
-
-
container
-
reserveStrategy
-
scrollbarSpacing
private final int scrollbarSpacing -
minWidth
private int minWidth -
minHeight
private int minHeight -
maxHeight
private int maxHeight
-
-
Constructor Details
-
ScrollableLayout
-
-
Method Details
-
setMinWidth
public void setMinWidth(int minWidth) -
setMinHeight
public void setMinHeight(int minHeight) -
setMaxHeight
public void setMaxHeight(int maxHeight) -
arrangeElements
public void arrangeElements()- Specified by:
arrangeElementsin interfaceLayout
-
visitChildren
- Specified by:
visitChildrenin interfaceLayout
-
setX
public void setX(int x) - Specified by:
setXin interfaceLayoutElement
-
setY
public void setY(int y) - 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
-