createHitBox

open fun createHitBox(@NotNull entity: @NotNull BaseEntity, @Nullable listener: @Nullable HitBoxListener, @NotNull predicate: @NotNull BonePredicate): Boolean

Creates a hitbox for bones matching a predicate.

Return

true if any hitboxes were created

Since

1.15.2

Parameters

entity

the source entity for the hitbox

listener

the hitbox listener

predicate

the bone predicate