HudObjectType

A type of HUD element

Parameters

clazz

object's class

name

object's name

function

object's render function

<T>

object type

See also

Constructors

Link copied to clipboard
constructor(@NotNull clazz: @NotNull Class<T>, @NotNull name: @NotNull String, @NotNull function: @NotNull BiFunction<T, HudPlayer, HudComponentSupplier<T>>, @NotNull stringGetter: @NotNull (String) -> T, @NotNull valuesSupplier: @NotNull Supplier<Collection<T>>)

Properties

Link copied to clipboard
Compass type
Link copied to clipboard
Hud type
Link copied to clipboard
Popup type

Functions

Link copied to clipboard
@NotNull
@Unmodifiable
open fun all(): @NotNull @Unmodifiable Collection<T>
Link copied to clipboard
@Nullable
open fun byName(@NotNull name: @NotNull String): @Nullable T
Link copied to clipboard
@NotNull
open fun defaultObjects(): @NotNull Stream<T>
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
@ApiStatus.Internal
@NotNull
open fun invoke(@NotNull object: @NotNull HudObject, @NotNull player: @NotNull HudPlayer): @NotNull HudComponentSupplier<out Any>
Gets supplier from an object
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
@NotNull
@Unmodifiable
open fun types(): @NotNull @Unmodifiable Collection<HudObjectType<out Any>>