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 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