Package kr.toxicity.hud.api.placeholder
Interface HudPlaceholder.PlaceholderFunction<T>
- Type Parameters:
T- type (Number, String, Boolean)
- All Superinterfaces:
BiFunction<List<String>,UpdateEvent, Function<HudPlayer, T>>
- Enclosing interface:
HudPlaceholder<T>
- 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 static interface HudPlaceholder.PlaceholderFunction<T>
extends BiFunction<List<String>,UpdateEvent,Function<HudPlayer,T>>
An aliases of (args, event) -> (player) -> T
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic <T> @NotNull HudPlaceholder.PlaceholderFunction<T> Gets placeholder function from single functionMethods inherited from interface java.util.function.BiFunction
andThen, apply
-
Method Details
-
of
@NotNull static <T> @NotNull HudPlaceholder.PlaceholderFunction<T> of(@NotNull @NotNull Function<HudPlayer, T> function) Gets placeholder function from single function- Type Parameters:
T- type (Number, String, Boolean)- Parameters:
function- function- Returns:
- placeholder function
-