createNametag

@NotNull
abstract fun createNametag(@NotNull bone: @NotNull RenderedBone): @NotNull ModelNametag

Creates a nametag for a rendered bone.

Return

the created nametag

Since

1.15.2

Parameters

bone

the bone to attach the nametag to


@NotNull
open fun createNametag(@NotNull bone: @NotNull RenderedBone, @NotNull consumer: @NotNull Consumer<ModelNametag>): @NotNull ModelNametag

Creates a nametag for a rendered bone with configuration.

Return

the created nametag

Since

1.15.2

Parameters

bone

the bone to attach the nametag to

consumer

a consumer to configure the nametag