Class HeaderAndFooterLayout

java.lang.Object
net.minecraft.client.gui.layouts.HeaderAndFooterLayout
All Implemented Interfaces:
Layout, LayoutElement

public class HeaderAndFooterLayout extends Object implements Layout
  • Field Details

    • CONTENT_MARGIN_TOP

      private static final int CONTENT_MARGIN_TOP
      See Also:
    • headerFrame

      private final FrameLayout headerFrame
    • footerFrame

      private final FrameLayout footerFrame
    • contentsFrame

      private final FrameLayout contentsFrame
    • screen

      private final Screen screen
    • headerHeight

      private int headerHeight
    • footerHeight

      private int footerHeight
  • Constructor Details

    • HeaderAndFooterLayout

      public HeaderAndFooterLayout(Screen pScreen)
    • HeaderAndFooterLayout

      public HeaderAndFooterLayout(Screen pScreen, int pHeight)
    • HeaderAndFooterLayout

      public HeaderAndFooterLayout(Screen pScreen, int pHeaderHeight, int pFooterHeight)
  • Method Details

    • setX

      public void setX(int pX)
      Specified by:
      setX in interface LayoutElement
    • setY

      public void setY(int pY)
      Specified by:
      setY in interface LayoutElement
    • getX

      public int getX()
      Specified by:
      getX in interface LayoutElement
    • getY

      public int getY()
      Specified by:
      getY in interface LayoutElement
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface LayoutElement
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface LayoutElement
    • getFooterHeight

      public int getFooterHeight()
    • setFooterHeight

      public void setFooterHeight(int pFooterHeight)
    • setHeaderHeight

      public void setHeaderHeight(int pHeaderHeight)
    • getHeaderHeight

      public int getHeaderHeight()
    • getContentHeight

      public int getContentHeight()
    • visitChildren

      public void visitChildren(Consumer<LayoutElement> pVisitor)
      Specified by:
      visitChildren in interface Layout
    • arrangeElements

      public void arrangeElements()
      Specified by:
      arrangeElements in interface Layout
    • addToHeader

      public <T extends LayoutElement> T addToHeader(T pChild)
    • addToHeader

      public <T extends LayoutElement> T addToHeader(T pChild, Consumer<LayoutSettings> pLayoutSettingsFactory)
    • addTitleHeader

      public void addTitleHeader(Component pMessage, Font pFont)
    • addToFooter

      public <T extends LayoutElement> T addToFooter(T pChild)
    • addToFooter

      public <T extends LayoutElement> T addToFooter(T pChild, Consumer<LayoutSettings> pLayoutSettingsFactory)
    • addToContents

      public <T extends LayoutElement> T addToContents(T pChild)
    • addToContents

      public <T extends LayoutElement> T addToContents(T pChild, Consumer<LayoutSettings> pLayoutSettingFactory)