Package net.minecraft.client.gui.layouts
Class HeaderAndFooterLayout
java.lang.Object
net.minecraft.client.gui.layouts.HeaderAndFooterLayout
- All Implemented Interfaces:
Layout,LayoutElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final FrameLayoutstatic final intprivate final FrameLayoutprivate intprivate final FrameLayoutprivate intprivate final Screen -
Constructor Summary
ConstructorsConstructorDescriptionHeaderAndFooterLayout(Screen pScreen) HeaderAndFooterLayout(Screen pScreen, int pHeight) HeaderAndFooterLayout(Screen pScreen, int pHeaderHeight, int pFooterHeight) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTitleHeader(Component pMessage, Font pFont) <T extends LayoutElement>
TaddToContents(T pChild) <T extends LayoutElement>
TaddToContents(T pChild, Consumer<LayoutSettings> pLayoutSettingFactory) <T extends LayoutElement>
TaddToFooter(T pChild) <T extends LayoutElement>
TaddToFooter(T pChild, Consumer<LayoutSettings> pLayoutSettingsFactory) <T extends LayoutElement>
TaddToHeader(T pChild) <T extends LayoutElement>
TaddToHeader(T pChild, Consumer<LayoutSettings> pLayoutSettingsFactory) voidintintintintintgetWidth()intgetX()intgetY()voidsetFooterHeight(int pFooterHeight) voidsetHeaderHeight(int pHeaderHeight) voidsetX(int pX) voidsetY(int pY) voidvisitChildren(Consumer<LayoutElement> pVisitor) 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
-
DEFAULT_HEADER_AND_FOOTER_HEIGHT
public static final int DEFAULT_HEADER_AND_FOOTER_HEIGHT- See Also:
-
CONTENT_MARGIN_TOP
private static final int CONTENT_MARGIN_TOP- See Also:
-
headerFrame
-
contentsFrame
-
screen
-
headerHeight
private int headerHeight
-
-
Constructor Details
-
HeaderAndFooterLayout
-
HeaderAndFooterLayout
-
HeaderAndFooterLayout
-
-
Method Details
-
setX
public void setX(int pX) - Specified by:
setXin interfaceLayoutElement
-
setY
public void setY(int pY) - 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
-
setHeaderHeight
public void setHeaderHeight(int pHeaderHeight) -
getHeaderHeight
public int getHeaderHeight() -
getContentHeight
public int getContentHeight() -
visitChildren
- Specified by:
visitChildrenin interfaceLayout
-
arrangeElements
public void arrangeElements()- Specified by:
arrangeElementsin interfaceLayout
-
addToHeader
-
addToHeader
public <T extends LayoutElement> T addToHeader(T pChild, Consumer<LayoutSettings> pLayoutSettingsFactory) -
addTitleHeader
-
addToContents
-
addToContents
public <T extends LayoutElement> T addToContents(T pChild, Consumer<LayoutSettings> pLayoutSettingFactory)
-