net.minecraft.client.gui.widget

public class ThreePartsLayoutWidget

implements LayoutWidget

net.minecraft.client.gui.layouts.HeaderAndFooterLayout
net.minecraft.client.gui.layouts.HeaderAndFooterLayout
net.minecraft.class_8132
net.minecraft.client.gui.widget.ThreePartsLayoutWidget

Field summary

Modifier and TypeField
public static final int
MAGIC_PADDING
MAGIC_PADDING
field_64197
field_64197
public static final int
DEFAULT_HEADER_AND_FOOTER_HEIGHT
DEFAULT_HEADER_AND_FOOTER_HEIGHT
field_42490
DEFAULT_HEADER_FOOTER_HEIGHT
private static final int
CONTENT_MARGIN_TOP
CONTENT_MARGIN_TOP
field_43136
FOOTER_MARGIN_TOP
private final SimplePositioningWidget
headerFrame
headerFrame
field_42491
header
private final SimplePositioningWidget
footerFrame
footerFrame
field_42492
footer
private final SimplePositioningWidget
contentsFrame
contentsFrame
field_42493
body
private final Screen
screen
screen
field_42494
screen
private int
headerHeight
headerHeight
field_42495
headerHeight
private int
footerHeight
footerHeight
field_42496
footerHeight

Constructor summary

ModifierConstructor
public (Screen screen)
public (Screen screen, int headerFooterHeight)
public (Screen screen, int headerHeight, int footerHeight)

Method summary

Modifier and TypeMethod
public void
setX(int x)
setX(int x)
method_46421(int arg0)
setX(int arg0)
public void
setY(int y)
setY(int y)
method_46419(int arg0)
setY(int arg0)
public int
getX()
getX()
method_46426()
getX()
public int
getY()
getY()
method_46427()
getY()
public int
getWidth()
getWidth()
method_25368()
getWidth()
public int
getHeight()
getHeight()
method_25364()
getHeight()
public int
getFooterHeight()
getFooterHeight()
method_48994()
getFooterHeight()
public void
setFooterHeight(int footerHeight)
setFooterHeight(int footerHeight)
method_48991(int arg0)
setFooterHeight(int footerHeight)
public void
setHeaderHeight(int headerHeight)
setHeaderHeight(int headerHeight)
method_48995(int arg0)
setHeaderHeight(int headerHeight)
public int
getHeaderHeight()
getHeaderHeight()
method_48998()
getHeaderHeight()
public int
getContentHeight()
getContentHeight()
method_57727()
getContentHeight()
public void
visitChildren(Consumer<LayoutElement> layoutElementVisitor)
visitChildren(Consumer<LayoutElement> layoutElementVisitor)
method_48227(Consumer<class_8021> arg0)
forEachElement(Consumer<Widget> arg0)
public void
arrangeElements()
arrangeElements()
method_48222()
refreshPositions()
public <T extends Widget> T
addToHeader(T child)
addToHeader(T child)
method_48992(T arg0)
addHeader(T widget)
public <T extends Widget> T
addToHeader(T child, Consumer<LayoutSettings> layoutSettingsAdjustments)
addToHeader(T child, Consumer<LayoutSettings> layoutSettingsAdjustments)
method_48993(T arg0, Consumer<class_7847> arg1)
addHeader(T widget, Consumer<Positioner> callback)
public void
addTitleHeader(Component component, Font font)
addTitleHeader(Component component, Font font)
method_57726(class_2561 arg0, class_327 arg1)
addHeader(Text text, TextRenderer textRenderer)
public <T extends Widget> T
addToFooter(T child)
addToFooter(T child)
method_48996(T arg0)
addFooter(T widget)
public <T extends Widget> T
addToFooter(T child, Consumer<LayoutSettings> layoutSettingsAdjustments)
addToFooter(T child, Consumer<LayoutSettings> layoutSettingsAdjustments)
method_48997(T arg0, Consumer<class_7847> arg1)
addFooter(T widget, Consumer<Positioner> callback)
public <T extends Widget> T
addToContents(T child)
addToContents(T child)
method_48999(T arg0)
addBody(T widget)
public <T extends Widget> T
addToContents(T child, Consumer<LayoutSettings> layoutSettingsAdjustments)
addToContents(T child, Consumer<LayoutSettings> layoutSettingsAdjustments)
method_49000(T arg0, Consumer<class_7847> arg1)
addBody(T widget, Consumer<Positioner> callback)