Class ScrollableLayout

java.lang.Object
net.minecraft.client.gui.components.ScrollableLayout
All Implemented Interfaces:
Layout, LayoutElement

public class ScrollableLayout extends Object implements Layout
  • Field Details

    • DEFAULT_SCROLLBAR_SPACING

      private static final int DEFAULT_SCROLLBAR_SPACING
      See Also:
    • content

      private final Layout content
    • container

      private final ScrollableLayout.Container container
    • reserveStrategy

      private final ScrollableLayout.ReserveStrategy reserveStrategy
    • scrollbarSpacing

      private final int scrollbarSpacing
    • minWidth

      private int minWidth
    • minHeight

      private int minHeight
    • maxHeight

      private int maxHeight
  • Constructor Details

    • ScrollableLayout

      public ScrollableLayout(Minecraft minecraft, Layout content, int maxHeight)
  • Method Details

    • setMinWidth

      public void setMinWidth(int minWidth)
    • setMinHeight

      public void setMinHeight(int minHeight)
    • setMaxHeight

      public void setMaxHeight(int maxHeight)
    • arrangeElements

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

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

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

      public void setY(int y)
      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