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 p_270234_)
    • HeaderAndFooterLayout

      public HeaderAndFooterLayout(Screen p_270404_, int p_270984_)
    • HeaderAndFooterLayout

      public HeaderAndFooterLayout(Screen p_270083_, int p_270134_, int p_270996_)
  • Method Details

    • setX

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

      public void setY(int p_270318_)
      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 p_270260_)
    • setHeaderHeight

      public void setHeaderHeight(int p_270135_)
    • getHeaderHeight

      public int getHeaderHeight()
    • getContentHeight

      public int getContentHeight()
    • visitChildren

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

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

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

      public <T extends LayoutElement> T addToHeader(T p_270870_, Consumer<LayoutSettings> p_294312_)
    • addTitleHeader

      public void addTitleHeader(Component p_330525_, Font p_330590_)
    • addToFooter

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

      public <T extends LayoutElement> T addToFooter(T p_270362_, Consumer<LayoutSettings> p_295132_)
    • addToContents

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

      public <T extends LayoutElement> T addToContents(T p_270611_, Consumer<LayoutSettings> p_294257_)