Hud

interface Hud : HudObject

Represents hud.

Functions

Link copied to clipboard
open fun add(@NotNull player: @NotNull HudPlayer): Boolean
Adds this object to player.
Link copied to clipboard
@NotNull
abstract fun createRenderer(@NotNull player: @NotNull HudPlayer): @NotNull HudComponentSupplier<Hud>
Returns the output of hud.
Link copied to clipboard
@ApiStatus.Internal
@NotNull
open fun getComponentsByType(@NotNull player: @NotNull HudPlayer): @NotNull HudComponentSupplier<out Any>
Gets rendered component of this object.
Link copied to clipboard
@NotNull
abstract fun getName(): @NotNull String
Gets an internal name of an object.
Link copied to clipboard
@NotNull
abstract fun getType(): @NotNull HudObjectType<out Any>
Gets the type instance.
Link copied to clipboard
@ApiStatus.Internal
@NotNull
open fun identifier(): @NotNull HudObject.Identifier
Creates object identifier
Link copied to clipboard
abstract fun isDefault(): Boolean
Returns this object is a default object or not.
Link copied to clipboard
open fun remove(@NotNull player: @NotNull HudPlayer): Boolean
Removes this object to player.
Link copied to clipboard
abstract fun tick(): Long
Gets object's frame time