createHitBox

@Nullable
abstract fun createHitBox(@NotNull entity: @NotNull BaseEntity, @NotNull bone: @NotNull RenderedBone, @NotNull boundingBox: @NotNull ModelBoundingBox, @NotNull controller: @NotNull MountController, @NotNull listener: @NotNull HitBoxListener): @Nullable HitBox

Creates a delegate hitbox for a target entity.

Return

the created hitbox, or null if creation failed

Since

1.15.2

Parameters

entity

the target entity

bone

the bone associated with the hitbox

boundingBox

the bounding box definition

controller

the mount controller

listener

the hitbox listener