Package net.minecraft.client.gui.layouts
Class LinearLayout
java.lang.Object
net.minecraft.client.gui.layouts.LinearLayout
- All Implemented Interfaces:
Layout
,LayoutElement
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private final LinearLayout.Orientation
private final GridLayout
-
Constructor Summary
ModifierConstructorDescriptionLinearLayout
(int p_265093_, int p_265502_, LinearLayout.Orientation p_265112_) private
LinearLayout
(LinearLayout.Orientation p_265341_) -
Method Summary
Modifier and TypeMethodDescription<T extends LayoutElement>
TaddChild
(T p_265140_) <T extends LayoutElement>
TaddChild
(T p_294205_, Consumer<LayoutSettings> p_295486_) <T extends LayoutElement>
TaddChild
(T p_265475_, LayoutSettings p_265684_) void
int
int
getWidth()
int
getX()
int
getY()
static LinearLayout
void
setX
(int p_295684_) void
setY
(int p_295771_) spacing
(int p_294650_) static LinearLayout
vertical()
void
visitChildren
(Consumer<LayoutElement> p_265508_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.layouts.Layout
visitWidgets
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
getRectangle, setPosition
-
Field Details
-
wrapped
-
orientation
-
nextChildIndex
private int nextChildIndex
-
-
Constructor Details
-
LinearLayout
-
LinearLayout
-
-
Method Details
-
spacing
-
newCellSettings
-
defaultCellSetting
-
addChild
-
addChild
-
addChild
-
visitChildren
- Specified by:
visitChildren
in interfaceLayout
-
arrangeElements
public void arrangeElements()- Specified by:
arrangeElements
in interfaceLayout
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceLayoutElement
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceLayoutElement
-
setX
public void setX(int p_295684_) - Specified by:
setX
in interfaceLayoutElement
-
setY
public void setY(int p_295771_) - Specified by:
setY
in interfaceLayoutElement
-
getX
public int getX()- Specified by:
getX
in interfaceLayoutElement
-
getY
public int getY()- Specified by:
getY
in interfaceLayoutElement
-
vertical
-
horizontal
-