Package net.minecraft.client.gui.layouts
Interface LayoutElement
- All Known Subinterfaces:
Layout
- All Known Implementing Classes:
AbstractButton
,AbstractLayout
,AbstractOptionSliderButton
,AbstractScrollWidget
,AbstractSliderButton
,AbstractStringWidget
,AbstractWidget
,AccessibilityOnboardingTextWidget
,BeaconScreen.BeaconCancelButton
,BeaconScreen.BeaconConfirmButton
,BeaconScreen.BeaconPowerButton
,BeaconScreen.BeaconScreenButton
,BeaconScreen.BeaconSpriteScreenButton
,BeaconScreen.BeaconUpgradePowerButton
,Button
,Checkbox
,CycleButton
,EditBox
,ExtendedButton
,FittingMultiLineTextWidget
,ForgeSlider
,FrameLayout
,GameModeSwitcherScreen.GameModeSlot
,GridLayout
,HeaderAndFooterLayout
,ImageButton
,ImageWidget
,LinearLayout
,LockIconButton
,MerchantScreen.TradeOfferButton
,MultiLineEditBox
,MultiLineTextWidget
,OptionInstance.OptionInstanceSliderButton
,OverlayRecipeComponent.OverlayRecipeButton
,OverlayRecipeComponent.OverlaySmeltingRecipeButton
,PageButton
,PlainTextButton
,RealmsMainScreen.CloseButton
,RealmsMainScreen.CrossButton
,RealmsMainScreen.NewsButton
,RealmsMainScreen.PendingInvitesButton
,RealmsResetWorldScreen.FrameButton
,RealmsSlotOptionsScreen.SettingsSlider
,RealmsWorldSlotButton
,RecipeBookTabButton
,RecipeButton
,SpacerElement
,StateSwitchingButton
,StringWidget
,TabButton
,TelemetryEventWidget
,TextAndImageButton
,UnicodeGlyphButton
public interface LayoutElement
-
Method Summary
Modifier and TypeMethodDescriptionint
default ScreenRectangle
int
getWidth()
int
getX()
int
getY()
default void
setPosition
(int p_265617_, int p_265577_) void
setX
(int p_265236_) void
setY
(int p_265404_) void
visitWidgets
(Consumer<AbstractWidget> p_265082_)
-
Method Details
-
setX
void setX(int p_265236_) -
setY
void setY(int p_265404_) -
getX
int getX() -
getY
int getY() -
getWidth
int getWidth() -
getHeight
int getHeight() -
getRectangle
-
setPosition
default void setPosition(int p_265617_, int p_265577_) -
visitWidgets
-