HudPlaceholder

interface HudPlaceholder<T>

Represents placeholder

Parameters

<T>

returns value's type

Functions

Link copied to clipboard
abstract fun getRequiredArgsLength(): Int
Gets a length of required args.
Link copied to clipboard
@NotNull
abstract fun invoke(@NotNull @Unmodifiable args: @NotNull @Unmodifiable List<String>, @NotNull reason: @NotNull UpdateEvent): @NotNull (HudPlayer) -> T
Creates new function from given args.
Link copied to clipboard
open fun <T> of(@NotNull biFunction: @NotNull BiFunction<List<String>, UpdateEvent, (HudPlayer) -> T>): @NotNull HudPlaceholder<T>
Creates new placeholder by function.