Package net.minecraft.client.gui.layouts
Class FrameLayout
java.lang.Object
net.minecraft.client.gui.layouts.AbstractLayout
net.minecraft.client.gui.layouts.FrameLayout
- All Implemented Interfaces:
Layout,LayoutElement
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.layouts.AbstractLayout
AbstractLayout.AbstractChildWrapper -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<FrameLayout.ChildContainer> private final LayoutSettingsprivate intprivate intFields inherited from class net.minecraft.client.gui.layouts.AbstractLayout
height, width -
Constructor Summary
ConstructorsConstructorDescriptionFrameLayout(int width, int height) FrameLayout(int x, int y, int width, int height) -
Method Summary
Modifier and TypeMethodDescription<T extends LayoutElement>
TaddChild(T child) <T extends LayoutElement>
TaddChild(T child, Consumer<LayoutSettings> layoutSettingsFactory) <T extends LayoutElement>
TaddChild(T child, LayoutSettings layoutSettings) static voidalignInDimension(int position, int rectangleLength, int childLength, Consumer<Integer> setter, float delta) static voidalignInRectangle(LayoutElement child, int x, int y, int width, int height, float deltaX, float deltaY) static voidalignInRectangle(LayoutElement child, ScreenRectangle rectangle, float deltaX, float deltaY) voidstatic voidcenterInRectangle(LayoutElement child, int x, int y, int width, int height) static voidcenterInRectangle(LayoutElement child, ScreenRectangle rectangle) setMinDimensions(int minWidth, int minHeight) setMinHeight(int minHeight) setMinWidth(int minWidth) voidvisitChildren(Consumer<LayoutElement> visitor) Methods inherited from class net.minecraft.client.gui.layouts.AbstractLayout
getHeight, getWidth, getX, getY, setX, setYMethods 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
-
children
-
minWidth
private int minWidth -
minHeight
private int minHeight -
defaultChildLayoutSettings
-
-
Constructor Details
-
FrameLayout
public FrameLayout() -
FrameLayout
public FrameLayout(int width, int height) -
FrameLayout
public FrameLayout(int x, int y, int width, int height)
-
-
Method Details
-
setMinDimensions
-
setMinHeight
-
setMinWidth
-
newChildLayoutSettings
-
defaultChildLayoutSetting
-
arrangeElements
public void arrangeElements() -
addChild
-
addChild
-
addChild
public <T extends LayoutElement> T addChild(T child, Consumer<LayoutSettings> layoutSettingsFactory) -
visitChildren
-
centerInRectangle
-
alignInRectangle
public static void alignInRectangle(LayoutElement child, int x, int y, int width, int height, float deltaX, float deltaY) -
alignInDimension
-