Package net.minecraft.client.gui.layouts
Interface LayoutElement
- All Known Subinterfaces:
Layout
- All Known Implementing Classes:
AbstractButton
,AbstractContainerWidget
,AbstractLayout
,AbstractOptionSliderButton
,AbstractScrollWidget
,AbstractSelectionList
,AbstractSliderButton
,AbstractStringWidget
,AbstractWidget
,BeaconScreen.BeaconCancelButton
,BeaconScreen.BeaconConfirmButton
,BeaconScreen.BeaconPowerButton
,BeaconScreen.BeaconScreenButton
,BeaconScreen.BeaconSpriteScreenButton
,BeaconScreen.BeaconUpgradePowerButton
,Button
,ChatSelectionScreen.ChatSelectionList
,Checkbox
,ConfigurationScreen.ConfigurationListScreen.ListLabelWidget
,ConfirmExperimentalFeaturesScreen.DetailsScreen.PackList
,ContainerObjectSelectionList
,CreateBuffetWorldScreen.BiomeList
,CreateFlatWorldScreen.DetailsList
,CycleButton
,EditBox
,EditGameRulesScreen.RuleList
,EqualSpacingLayout
,ExtendedButton
,ExtendedSlider
,FittingMultiLineTextWidget
,FocusableTextWidget
,FrameLayout
,GameModeSwitcherScreen.GameModeSlot
,GridLayout
,HeaderAndFooterLayout
,ImageButton
,ImageWidget
,ImageWidget.Sprite
,ImageWidget.Texture
,KeyBindsList
,LanguageSelectScreen.LanguageSelectionList
,LinearLayout
,LoadingDotsWidget
,LoadingErrorScreen.LoadingEntryList
,LockIconButton
,MerchantScreen.TradeOfferButton
,ModListWidget
,ModsButton
,MultiLineEditBox
,MultiLineTextWidget
,ObjectSelectionList
,OptionInstance.OptionInstanceSliderButton
,OptionsList
,OverlayRecipeComponent.OverlayRecipeButton
,OverlayRecipeComponent.OverlaySmeltingRecipeButton
,PageButton
,PlainTextButton
,PlayerSkinWidget
,PresetFlatWorldScreen.PresetsList
,RealmsBackupInfoScreen.BackupInfoList
,RealmsBackupScreen.BackupObjectSelectionList
,RealmsMainScreen.CrossButton
,RealmsMainScreen.NotificationButton
,RealmsMainScreen.RealmSelectionList
,RealmsObjectSelectionList
,RealmsPendingInvitesScreen.PendingInvitationSelectionList
,RealmsPlayerScreen.InvitedObjectSelectionList
,RealmsResetWorldScreen.FrameButton
,RealmsSelectFileToUploadScreen.WorldSelectionList
,RealmsSelectWorldTemplateScreen.WorldTemplateList
,RealmsSlotOptionsScreen.SettingsSlider
,RealmsWorldSlotButton
,RecipeBookTabButton
,RecipeButton
,ReportReasonSelectionScreen.ReasonSelectionList
,ScrollableExperimentsScreen.ExperimentSelectionList
,ServerLinksScreen.LinkList
,ServerSelectionList
,SocialInteractionsPlayerList
,SpacerElement
,SpriteIconButton
,SpriteIconButton.CenteredIcon
,SpriteIconButton.TextAndIcon
,StateSwitchingButton
,StatsScreen.GeneralStatisticsList
,StatsScreen.ItemStatisticsList
,StatsScreen.MobsStatisticsList
,StringWidget
,TabButton
,TelemetryEventWidget
,TransferableSelectionList
,UnicodeGlyphButton
,WorldSelectionList
public interface LayoutElement
-
Method Summary
Modifier and TypeMethodDescriptionint
default ScreenRectangle
int
getWidth()
int
getX()
int
getY()
default void
setPosition
(int x, int y) void
setX
(int x) void
setY
(int y) void
visitWidgets
(Consumer<AbstractWidget> consumer)
-
Method Details
-
setX
void setX(int x) -
setY
void setY(int y) -
getX
int getX() -
getY
int getY() -
getWidth
int getWidth() -
getHeight
int getHeight() -
getRectangle
-
setPosition
default void setPosition(int x, int y) -
visitWidgets
-