hitbox

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

Retrieves or creates a hitbox for the entity.

Return

the hitbox, or null if not found/created

Since

1.15.2

Parameters

listener

the hitbox listener

predicate

the bone predicate