Class WidgetData

java.lang.Object
net.dillon.dillonlib.screen.WidgetData

public class WidgetData extends Object
Holds data for a widget.
Since:
1.2
See Also:
  • Field Details

  • Method Details

    • of

      public static WidgetData of(net.minecraft.client.gui.components.AbstractWidget widget, BooleanSupplier shouldBeActive, Supplier<ConditionalTooltip> conditionalTooltip, IntSupplier x, IntSupplier y)
      Creates new Widget Data.
    • getWidget

      public net.minecraft.client.gui.components.AbstractWidget getWidget()
      Returns:
      the widget.
    • shouldBeActive

      public BooleanSupplier shouldBeActive()
      Returns:
      if the width should be active.
    • getConditionalTooltip

      public ConditionalTooltip 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.