Package net.minecraft.client.gui.widget
Interface Widget
- All Known Subinterfaces:
LayoutWidget
- All Known Implementing Classes:
AbstractTextWidget,AbuseReportReasonScreen.ReasonListWidget,AlwaysSelectedEntryListWidget,AnimatedResultButton,AxisGridWidget,BeaconScreen.BaseButtonWidget,BeaconScreen.CancelButtonWidget,BeaconScreen.DoneButtonWidget,BeaconScreen.EffectButtonWidget,BeaconScreen.IconButtonWidget,BeaconScreen.LevelTwoEffectButtonWidget,ButtonWidget,ChatSelectionScreen.SelectionListWidget,CheckboxWidget,ClickableWidget,ContainerWidget,ControlsListWidget,CustomizeBuffetLevelScreen.BuffetBiomesListWidget,CustomizeFlatLevelScreen.SuperflatLayersListWidget,CyclingButtonWidget,DirectionalLayoutWidget,EditBoxWidget,EditGameRulesScreen.RuleListWidget,ElementListWidget,EmptyWidget,EntryListWidget,ExperimentalWarningScreen.DetailsScreen.PackListWidget,ExperimentsScreen.ExperimentsListWidget,GameModeSwitcherScreen.ButtonWidget,GridWidget,IconWidget,IconWidget.Simple,IconWidget.Texture,LanguageOptionsScreen.LanguageSelectionListWidget,LoadingWidget,LockButtonWidget,MerchantScreen.WidgetButtonPage,MultilineTextWidget,MultiplayerServerListWidget,NarratedMultilineTextWidget,OptionListWidget,OptionSliderWidget,PackListWidget,PageTurnWidget,PlayerSkinWidget,PresetsScreen.SuperflatPresetsListWidget,PressableTextWidget,PressableWidget,RealmsBackupInfoScreen.BackupInfoList,RealmsBackupScreen.BackupObjectSelectionList,RealmsCreateWorldScreen.FrameButton,RealmsMainScreen.CrossButton,RealmsMainScreen.NotificationButtonWidget,RealmsMainScreen.RealmSelectionList,RealmsPendingInvitesScreen.PendingInvitationSelectionList,RealmsPlayerScreen.InvitedObjectSelectionList,RealmsSelectFileToUploadScreen.WorldSelectionList,RealmsSelectWorldTemplateScreen.WorldTemplateObjectSelectionList,RealmsSlotOptionsScreen.SettingsSlider,RealmsWorldSlotButton,RecipeAlternativesWidget.AlternativeButtonWidget,RecipeAlternativesWidget.CraftingAlternativeButtonWidget,RecipeAlternativesWidget.FurnaceAlternativeButtonWidget,RecipeGroupButtonWidget,ScrollableTextFieldWidget,ScrollableTextWidget,ScrollableWidget,ServerLinksScreen.LinksListWidget,SimpleOption.OptionSliderWidgetImpl,SimplePositioningWidget,SliderWidget,SocialInteractionsPlayerListWidget,StatsScreen.EntityStatsListWidget,StatsScreen.GeneralStatsListWidget,StatsScreen.ItemStatsListWidget,TabButtonWidget,TelemetryEventWidget,TextFieldWidget,TextIconButtonWidget,TextIconButtonWidget.IconOnly,TextIconButtonWidget.WithText,TexturedButtonWidget,TextWidget,ThreePartsLayoutWidget,ToggleButtonWidget,WorldListWidget,WrapperWidget
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/Widgetintermediary net/minecraft/class_8021official fxo
-
Method Summary
Modifier and TypeMethodDescriptionvoidforEachChild(Consumer<ClickableWidget> consumer) intdefault ScreenRectintgetWidth()intgetX()intgetY()default voidsetPosition(int x, int y) voidsetX(int x) voidsetY(int y)
-
Method Details
-
setX
void setX(int x) - Mappings:
Namespace Name Mixin selector named setXLnet/minecraft/client/gui/widget/Widget;setX(I)Vintermediary method_46421Lnet/minecraft/class_8021;method_46421(I)Vofficial jLfxo;j(I)V
-
setY
void setY(int y) - Mappings:
Namespace Name Mixin selector named setYLnet/minecraft/client/gui/widget/Widget;setY(I)Vintermediary method_46419Lnet/minecraft/class_8021;method_46419(I)Vofficial kLfxo;k(I)V
-
getX
int getX()- Mappings:
Namespace Name Mixin selector named getXLnet/minecraft/client/gui/widget/Widget;getX()Iintermediary method_46426Lnet/minecraft/class_8021;method_46426()Iofficial FLfxo;F()I
-
getY
int getY()- Mappings:
Namespace Name Mixin selector named getYLnet/minecraft/client/gui/widget/Widget;getY()Iintermediary method_46427Lnet/minecraft/class_8021;method_46427()Iofficial GLfxo;G()I
-
getWidth
int getWidth()- Mappings:
Namespace Name Mixin selector named getWidthLnet/minecraft/client/gui/widget/Widget;getWidth()Iintermediary method_25368Lnet/minecraft/class_8021;method_25368()Iofficial ALfxo;A()I
-
getHeight
int getHeight()- Mappings:
Namespace Name Mixin selector named getHeightLnet/minecraft/client/gui/widget/Widget;getHeight()Iintermediary method_25364Lnet/minecraft/class_8021;method_25364()Iofficial yLfxo;y()I
-
setPosition
default void setPosition(int x, int y) - Mappings:
Namespace Name Mixin selector named setPositionLnet/minecraft/client/gui/widget/Widget;setPosition(II)Vintermediary method_48229Lnet/minecraft/class_8021;method_48229(II)Vofficial cLfxo;c(II)V
-
forEachChild
- Mappings:
Namespace Name Mixin selector named forEachChildLnet/minecraft/client/gui/widget/Widget;forEachChild(Ljava/util/function/Consumer;)Vintermediary method_48206Lnet/minecraft/class_8021;method_48206(Ljava/util/function/Consumer;)Vofficial aLfxo;a(Ljava/util/function/Consumer;)V
-