Class WidgetData
java.lang.Object
net.dillon.dillonlib.screen.WidgetData
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.gui.components.AbstractWidgetintgetX()intgetY()static WidgetDataof(net.minecraft.client.gui.components.AbstractWidget widget, BooleanSupplier shouldBeActive, Supplier<ConditionalTooltip> conditionalTooltip, IntSupplier x, IntSupplier y) Creates newWidget Data.
-
Field Details
-
UNMODIFIED
public static final int UNMODIFIED- See Also:
-
-
Method Details
-
of
public static WidgetData of(net.minecraft.client.gui.components.AbstractWidget widget, BooleanSupplier shouldBeActive, Supplier<ConditionalTooltip> conditionalTooltip, IntSupplier x, IntSupplier y) Creates newWidget Data. -
getWidget
public net.minecraft.client.gui.components.AbstractWidget getWidget()- Returns:
- the widget.
-
shouldBeActive
- Returns:
- if the
widthshould be active.
-
getConditionalTooltip
- Returns:
- the conditional tooltip.
-
getX
public int getX()- Returns:
- the x pos for this widget.
-
getY
public int getY()- Returns:
- the y pos for this widget.
-