Interface IAbstractWidgetExtension
- All Known Implementing Classes:
net.minecraft.client.gui.components.AbstractButton
,net.minecraft.client.gui.components.AbstractContainerWidget
,net.minecraft.client.gui.components.AbstractScrollArea
,net.minecraft.client.gui.components.AbstractSelectionList
,net.minecraft.client.gui.components.AbstractSliderButton
,AbstractTestScreen.GroupableList
,net.minecraft.client.gui.components.AbstractWidget
,net.minecraft.client.gui.components.Button
,ConfigurationScreen.ConfigurationListScreen.ListLabelWidget
,ExtendedButton
,ExtendedSlider
,LoadingErrorScreen.LoadingEntryList
,ModListWidget
,ModsButton
,net.minecraft.client.gui.components.ObjectSelectionList
,UnicodeGlyphButton
public interface IAbstractWidgetExtension
Extension interface for
AbstractWidget
.-
Method Summary
-
Method Details
-
self
private net.minecraft.client.gui.components.AbstractWidget self() -
onClick
default void onClick(double mouseX, double mouseY, int button) Handles the logic for when this widget is clicked. Vanilla calls this afterAbstractWidget.mouseClicked(double, double, int)
validates that:- this widget is
active
andvisible
- the button
can be handled
by this widget - the mouse
invalid reference
is over
- Parameters:
mouseX
- the X position of the mousemouseY
- the Y position of the mousebutton
- the mouse button being clicked- See Also:
- this widget is
-