Builder

open class Builder<T>

Placeholder builder

Parameters

<T>

type (Number, String, Boolean)

Functions

Link copied to clipboard
open fun add(@NotNull name: @NotNull String, @NotNull container: @NotNull PlaceholderContainer<T>)
Adds new placeholder to registry
Link copied to clipboard
@NotNull
open fun build(): @NotNull HudPlaceholder<T>
Builds placeholder.
Link copied to clipboard
@NotNull
open fun function(@NotNull function: @NotNull HudPlaceholder.PlaceholderFunction<T>): @NotNull HudPlaceholder.Builder<T>
Sets function
Link copied to clipboard
@NotNull
open fun requiredArgsLength(requiredArgsLength: Int): @NotNull HudPlaceholder.Builder<T>
Sets required args amount