hitbox

@Nullable
open fun hitbox(@NotNull entity: @NotNull BaseEntity, @Nullable listener: @Nullable HitBoxListener, @NotNull predicate: @NotNull Predicate<RenderedBone>): @Nullable HitBox

Retrieves or creates a hitbox for a specific bone.

Return

the hitbox, or null if not found/created

Since

1.15.2

Parameters

entity

the source entity

listener

the hitbox listener

predicate

the bone predicate