HitBox

interface HitBox

Gets hit-box

See also

LivingEntity

Functions

Link copied to clipboard
abstract fun dismount(@NotNull entity: Entity)
Dismounts this hit-box
Link copied to clipboard
abstract fun forceDismount(): Boolean
Checks dismount call is forced by HitBox#dismount(Entity)
Link copied to clipboard
@NotNull
abstract fun groupName(): String
Gets bone name
Link copied to clipboard
@NotNull
abstract fun listener(): HitBoxListener
Gets hit-box listener
Link copied to clipboard
abstract fun mount(@NotNull entity: Entity)
Mounts this hit-box
Link copied to clipboard
@NotNull
abstract fun mountController(): MountController
Gets mount controller
abstract fun mountController(@NotNull controller: MountController)
Sets mount controller
Link copied to clipboard
abstract fun onWalk(): Boolean
Checks passenger of this hit-box is on walk
Link copied to clipboard
@NotNull
abstract fun relativePosition(): Vector3f
Gets relative position for source entity
Link copied to clipboard
abstract fun removeHitBox()
Removes this hit-box It differs from Entity#remove because it is thread-safe
Link copied to clipboard
@NotNull
abstract fun source(): Entity
Gets source entity