Interface HudComponentSupplier<T extends HudObject>
- Type Parameters:
T- parent type
- All Superinterfaces:
Supplier<List<WidthComponent>>
Gets component supplier.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <R extends HudObject>
@NotNull HudComponentSupplier<R> empty(R parent) Creates empty supplier by parentstatic <R extends HudObject>
@NotNull HudComponentSupplier<R> of(R parent, @NotNull Supplier<List<WidthComponent>> supplier) Creates supplier by parentparent()Gets parent.
-
Method Details
-
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- parentsupplier- supplier- Returns:
- list supplier
-