ModelNametag

interface ModelNametag

Represents a nametag associated with a model part.

Nametags are typically implemented as invisible armor stands or text displays that float above a specific bone.

Since

1.15.2

Functions

Link copied to clipboard
abstract fun alwaysVisible(alwaysVisible: Boolean)
Sets whether the nametag should always be visible (even through blocks).
Link copied to clipboard
abstract fun component(@Nullable component: @Nullable Component)
Sets the text component of the nametag.
Link copied to clipboard
abstract fun remove(@NotNull bundler: @NotNull PacketBundler)
Removes the nametag.
Link copied to clipboard
abstract fun send(@NotNull player: @NotNull PlatformPlayer)
Sends the nametag packet to a specific player.
Link copied to clipboard
abstract fun teleport(@NotNull location: @NotNull PlatformLocation)
Teleports the nametag to a new location.