bone

@Nullable
open fun bone(@NotNull name: @NotNull BoneName): @Nullable RenderedBone

Retrieves a bone by name.

Return

the bone, or null if not found

Since

1.15.2

Parameters

name

the bone name


@Nullable
open fun bone(@NotNull name: @NotNull String): @Nullable RenderedBone

Retrieves a bone by name string.

Return

the bone, or null if not found

Since

1.15.2

Parameters

name

the bone name


@Nullable
open fun bone(@NotNull predicate: @NotNull Predicate<RenderedBone>): @Nullable RenderedBone

Retrieves the first bone matching a predicate.

Return

the bone, or null if not found

Since

1.15.2

Parameters

predicate

the bone predicate