HudPlaceholder

interface HudPlaceholder<T>

Represents placeholder

Parameters

<T>

type (Number, String, Boolean)

Types

Link copied to clipboard
open class Builder<T>
Placeholder builder
Link copied to clipboard
An aliases of (args, event) -> (player) -> T

Functions

Link copied to clipboard
Creates placeholder builder.
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 HudPlaceholder.PlaceholderFunction<T>): @NotNull HudPlaceholder<T>
Creates new placeholder by function.