Interface HUDBuilder<T>

Type Parameters:
T - The type of the builder
All Superinterfaces:
InstructionBuilder
All Known Implementing Classes:
RectangleBuilder, TextBuilder, TextureBuilder

public interface HUDBuilder<T> extends InstructionBuilder
Represents a InstructionBuilder for displaying elements on the HUD.
  • Method Summary

    Modifier and Type
    Method
    Description
    argb(int argb)
    Sets the color of the element using ARGB format.
    default T
    argb(int a, int r, int g, int b)
    Sets the color of the element using ARGB format.
    default T
    Sets the color of the element.
    default T
    color(@NotNull Color color, int alpha)
    Sets the color of the element.
    default T
    duration(int millis)
    Sets the duration the element should be displayed for.
    duration(long millis)
    Sets the duration the element should be displayed for.
    default T
    duration(long time, @NotNull TimeUnit unit)
    Sets the duration the element should be displayed for.
    default T
    Sets the duration the element should be displayed for.
    default T
    rgb(int rgb)
    Sets the color of the element using RGB format.
    default T
    rgb(int r, int g, int b)
    Sets the color of the element using RGB format.
    x(int x)
    Sets the X coordinate of the element.
    y(int y)
    Sets the Y coordinate of the element.

    Methods inherited from interface xyz.gmitch215.socketmc.instruction.builder.InstructionBuilder

    build
  • Method Details

    • x

      @NotNull T x(int x)
      Sets the X coordinate of the element.
      Parameters:
      x - X coordinate, in pixels
      Returns:
      this class, for chaining
    • y

      @NotNull T y(int y)
      Sets the Y coordinate of the element.
      Parameters:
      y - Y coordinate, in pixels
      Returns:
      this class, for chaining
    • argb

      @NotNull T argb(int argb)
      Sets the color of the element using ARGB format.
      Parameters:
      argb - Color in ARGB
      Returns:
      this class, for chaining
    • rgb

      @NotNull default T rgb(int r, int g, int b)
      Sets the color of the element using RGB format.
      Parameters:
      r - Red
      g - Green
      b - Blue
      Returns:
      this class, for chaining
    • rgb

      @NotNull default T rgb(int rgb)
      Sets the color of the element using RGB format.
      Parameters:
      rgb - RGB color
      Returns:
      this class, for chaining
    • argb

      @NotNull default T argb(int a, int r, int g, int b)
      Sets the color of the element using ARGB format.
      Parameters:
      a - Alpha
      r - Red
      g - Green
      b - Blue
      Returns:
      this class, for chaining
    • color

      @NotNull default T color(@NotNull @NotNull Color color)
      Sets the color of the element.
      Parameters:
      color - Color
      Returns:
      this class, for chaining
    • color

      @NotNull default T color(@NotNull @NotNull Color color, int alpha)
      Sets the color of the element.
      Parameters:
      color - Color
      alpha - Alpha
      Returns:
      this class, for chaining
    • duration

      @NotNull T duration(long millis)
      Sets the duration the element should be displayed for.
      Parameters:
      millis - Duration, in milliseconds
      Returns:
      this class, for chaining
    • duration

      @NotNull default T duration(int millis)
      Sets the duration the element should be displayed for.
      Parameters:
      millis - Duration, in milliseconds
      Returns:
      this class, for chaining
    • duration

      @NotNull default T duration(@NotNull @NotNull Duration duration)
      Sets the duration the element should be displayed for.
      Parameters:
      duration - Duration
      Returns:
      this class, for chaining
    • duration

      @NotNull default T duration(long time, @NotNull @NotNull TimeUnit unit)
      Sets the duration the element should be displayed for.
      Parameters:
      time - Duration Amount
      unit - Duration Unit
      Returns:
      this class, for chaining