Interface HudComponentSupplier<T extends HudObject>

Type Parameters:
T - parent type
All Superinterfaces:
Supplier<List<WidthComponent>>

public interface HudComponentSupplier<T extends HudObject> extends Supplier<List<WidthComponent>>
Gets component supplier.
  • Method Details

    • parent

      @NotNull T parent()
      Gets parent.
      Returns:
      parent
    • empty

      @Internal @NotNull static <R extends HudObject> @NotNull HudComponentSupplier<R> empty(@NotNull R parent)
      Creates empty supplier by parent
      Type Parameters:
      R - type
      Parameters:
      parent - parent
      Returns:
      empty list supplier
    • of

      @Internal @NotNull static <R extends HudObject> @NotNull HudComponentSupplier<R> of(@NotNull R parent, @NotNull @NotNull Supplier<List<WidthComponent>> supplier)
      Creates supplier by parent
      Type Parameters:
      R - type
      Parameters:
      parent - parent
      supplier - supplier
      Returns:
      list supplier