Interface WidgetCreator

All Known Implementing Classes:
ColorOption, CyclingOption, InputOption, ScreenOpenButton, SimpleButton, SliderOption, TextOption
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface WidgetCreator
An interface used to create clickable widgets
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.client.gui.widget.ClickableWidget
    createWidget(int x, int y, int width, int height)
    Creates the widget.
  • Method Details

    • createWidget

      net.minecraft.client.gui.widget.ClickableWidget createWidget(int x, int y, int width, int height)
      Creates the widget.
      Parameters:
      x - The x position
      y - The y position
      width - The widget width
      height - The widget height
      Returns:
      The created widget