Package net.minecraft.client.gui.layouts
Class LinearLayout
java.lang.Object
net.minecraft.client.gui.layouts.LinearLayout
- All Implemented Interfaces:
- Layout,- LayoutElement
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate intprivate final LinearLayout.Orientationprivate final GridLayout
- 
Constructor SummaryConstructorsModifierConstructorDescriptionLinearLayout(int p_265093_, int p_265502_, LinearLayout.Orientation p_265112_) privateLinearLayout(LinearLayout.Orientation p_265341_) 
- 
Method SummaryModifier 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_) voidintintgetWidth()intgetX()intgetY()static LinearLayoutvoidsetX(int p_295684_) voidsetY(int p_295771_) spacing(int p_294650_) static LinearLayoutvertical()voidvisitChildren(Consumer<LayoutElement> p_265508_) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.layouts.LayoutvisitWidgetsMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElementgetRectangle, setPosition
- 
Field Details- 
wrapped
- 
orientation
- 
nextChildIndexprivate int nextChildIndex
 
- 
- 
Constructor Details- 
LinearLayout
- 
LinearLayout
 
- 
- 
Method Details- 
spacing
- 
newCellSettings
- 
defaultCellSetting
- 
addChild
- 
addChild
- 
addChild
- 
visitChildren- Specified by:
- visitChildrenin interface- Layout
 
- 
arrangeElementspublic void arrangeElements()- Specified by:
- arrangeElementsin interface- Layout
 
- 
getWidthpublic int getWidth()- Specified by:
- getWidthin interface- LayoutElement
 
- 
getHeightpublic int getHeight()- Specified by:
- getHeightin interface- LayoutElement
 
- 
setXpublic void setX(int p_295684_) - Specified by:
- setXin interface- LayoutElement
 
- 
setYpublic void setY(int p_295771_) - Specified by:
- setYin interface- LayoutElement
 
- 
getXpublic int getX()- Specified by:
- getXin interface- LayoutElement
 
- 
getYpublic int getY()- Specified by:
- getYin interface- LayoutElement
 
- 
vertical
- 
horizontal
 
-