Class GridLayout
java.lang.Object
net.minecraft.client.gui.layouts.AbstractLayout
net.minecraft.client.gui.layouts.GridLayout
- All Implemented Interfaces:
Layout, LayoutElement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classfinal classNested classes/interfaces inherited from class AbstractLayout
AbstractLayout.AbstractChildWrapper -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<GridLayout.ChildContainer> private intprivate final LayoutSettingsprivate intFields inherited from class AbstractLayout
height, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends LayoutElement>
TaddChild(T child, int row, int column) <T extends LayoutElement>
TaddChild(T child, int row, int column, int rows, int columns) <T extends LayoutElement>
TaddChild(T child, int row, int column, int rows, int columns, Consumer<LayoutSettings> layoutSettingsAdjustments) <T extends LayoutElement>
TaddChild(T child, int row, int column, int rows, int columns, LayoutSettings cellSettings) <T extends LayoutElement>
TaddChild(T child, int row, int column, Consumer<LayoutSettings> layoutSettingsAdjustments) <T extends LayoutElement>
TaddChild(T child, int row, int column, LayoutSettings cellSettings) voidcolumnSpacing(int columnSpacing) createRowHelper(int columns) rowSpacing(int rowSpacing) spacing(int spacing) voidvisitChildren(Consumer<LayoutElement> layoutElementVisitor) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Layout
visitWidgetsMethods inherited from interface LayoutElement
getRectangle, setPosition
-
Field Details
-
children
-
defaultCellSettings
-
rowSpacing
private int rowSpacing -
columnSpacing
private int columnSpacing
-
-
Constructor Details
-
GridLayout
public GridLayout() -
GridLayout
public GridLayout(int x, int y)
-
-
Method Details
-
arrangeElements
public void arrangeElements() -
addChild
-
addChild
public <T extends LayoutElement> T addChild(T child, int row, int column, LayoutSettings cellSettings) -
addChild
public <T extends LayoutElement> T addChild(T child, int row, int column, Consumer<LayoutSettings> layoutSettingsAdjustments) -
addChild
-
addChild
public <T extends LayoutElement> T addChild(T child, int row, int column, int rows, int columns, LayoutSettings cellSettings) -
addChild
public <T extends LayoutElement> T addChild(T child, int row, int column, int rows, int columns, Consumer<LayoutSettings> layoutSettingsAdjustments) -
columnSpacing
-
rowSpacing
-
spacing
-
visitChildren
-
newCellSettings
-
defaultCellSetting
-
createRowHelper
-