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 Layout
private int
private int
private static final int
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
int
getWidth()
int
getX()
int
getY()
void
setMaxHeight
(int pMaxHeight) void
setMinWidth
(int pMinWidth) void
setX
(int pX) void
setY
(int pY) void
visitChildren
(Consumer<LayoutElement> pVisitor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.layouts.Layout
visitWidgets
Methods 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:
arrangeElements
in interfaceLayout
-
visitChildren
- Specified by:
visitChildren
in interfaceLayout
-
setX
public void setX(int pX) - Specified by:
setX
in interfaceLayoutElement
-
setY
public void setY(int pY) - Specified by:
setY
in interfaceLayoutElement
-
getX
public int getX()- Specified by:
getX
in interfaceLayoutElement
-
getY
public int getY()- Specified by:
getY
in interfaceLayoutElement
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceLayoutElement
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceLayoutElement
-