Package net.minecraft.client.gui.layouts
Class HeaderAndFooterLayout
java.lang.Object
net.minecraft.client.gui.layouts.HeaderAndFooterLayout
- All Implemented Interfaces:
Layout
,LayoutElement
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final FrameLayout
static final int
private final FrameLayout
private int
private final FrameLayout
private int
private final Screen
-
Constructor Summary
ConstructorDescriptionHeaderAndFooterLayout
(Screen p_270234_) HeaderAndFooterLayout
(Screen p_270404_, int p_270984_) HeaderAndFooterLayout
(Screen p_270083_, int p_270134_, int p_270996_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTitleHeader
(Component p_330525_, Font p_330590_) <T extends LayoutElement>
TaddToContents
(T p_270895_) <T extends LayoutElement>
TaddToContents
(T p_270611_, Consumer<LayoutSettings> p_294257_) <T extends LayoutElement>
TaddToFooter
(T p_270951_) <T extends LayoutElement>
TaddToFooter
(T p_270362_, Consumer<LayoutSettings> p_295132_) <T extends LayoutElement>
TaddToHeader
(T p_270636_) <T extends LayoutElement>
TaddToHeader
(T p_270870_, Consumer<LayoutSettings> p_294312_) void
int
int
int
int
int
getWidth()
int
getX()
int
getY()
void
setFooterHeight
(int p_270260_) void
setHeaderHeight
(int p_270135_) void
setX
(int p_270309_) void
setY
(int p_270318_) void
visitChildren
(Consumer<LayoutElement> p_270213_) 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
-
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 p_270309_) - Specified by:
setX
in interfaceLayoutElement
-
setY
public void setY(int p_270318_) - 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
-
setHeaderHeight
public void setHeaderHeight(int p_270135_) -
getHeaderHeight
public int getHeaderHeight() -
getContentHeight
public int getContentHeight() -
visitChildren
- Specified by:
visitChildren
in interfaceLayout
-
arrangeElements
public void arrangeElements()- Specified by:
arrangeElements
in interfaceLayout
-
addToHeader
-
addToHeader
-
addTitleHeader
-
addToContents
-
addToContents
-