Class FlowLayout
java.lang.Object
net.minecraft.client.gui.layouts.AbstractLayout
net.replaceitem.reconfigure.screen.widget.layout.FlowLayout
- All Implemented Interfaces:
net.minecraft.client.gui.layouts.Layout, net.minecraft.client.gui.layouts.LayoutElement
public class FlowLayout
extends net.minecraft.client.gui.layouts.AbstractLayout
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumprotected static classNested classes/interfaces inherited from class net.minecraft.client.gui.layouts.AbstractLayout
net.minecraft.client.gui.layouts.AbstractLayout.AbstractChildWrapper -
Field Summary
Fields inherited from class net.minecraft.client.gui.layouts.AbstractLayout
height, width -
Constructor Summary
ConstructorsConstructorDescriptionFlowLayout(int x, int y, int width, int height, FlowLayout.DisplayAxis flowAxis) FlowLayout(FlowLayout.DisplayAxis flowAxis) -
Method Summary
Modifier and TypeMethodDescription<T extends net.minecraft.client.gui.layouts.LayoutElement>
Tadd(T widget) <T extends net.minecraft.client.gui.layouts.LayoutElement>
Tadd(T widget, net.minecraft.client.gui.layouts.LayoutSettings positioner) voidnet.minecraft.client.gui.layouts.LayoutSettingsnet.minecraft.client.gui.layouts.LayoutSettingsvoidvoidsetFlowSpacing(int flowSpacing) voidsetFlowWidth(int size) voidsetWrapSpacing(int wrapSpacing) voidvisitChildren(Consumer<net.minecraft.client.gui.layouts.LayoutElement> consumer) Methods inherited from class net.minecraft.client.gui.layouts.AbstractLayout
getHeight, getWidth, getX, getY, setX, setYMethods inherited from class 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
-
Constructor Details
-
FlowLayout
-
FlowLayout
-
-
Method Details
-
setFlowSpacing
public void setFlowSpacing(int flowSpacing) -
setWrapSpacing
public void setWrapSpacing(int wrapSpacing) -
setFlowWidth
public void setFlowWidth(int size) -
add
public <T extends net.minecraft.client.gui.layouts.LayoutElement> T add(T widget) -
add
public <T extends net.minecraft.client.gui.layouts.LayoutElement> T add(T widget, net.minecraft.client.gui.layouts.LayoutSettings positioner) -
visitChildren
-
arrangeElements
public void arrangeElements() -
removeChildren
public void removeChildren() -
copyPositioner
public net.minecraft.client.gui.layouts.LayoutSettings copyPositioner() -
getMainPositioner
public net.minecraft.client.gui.layouts.LayoutSettings getMainPositioner()
-