HitBox

interface HitBox

Gets hit-box

See also

LivingEntity

Functions

Link copied to clipboard
abstract fun dismount(@NotNull entity: @NotNull Entity)
Dismounts this hit-box
Link copied to clipboard
abstract fun dismountAll()
Dismounts all passengers
Link copied to clipboard
abstract fun forceDismount(): Boolean
Check dismount call is forced by HitBox#dismount(Entity)
Link copied to clipboard
@NotNull
abstract fun groupName(): @NotNull BoneName
Gets bone name
Link copied to clipboard
abstract fun hasMountDriver(): Boolean
Gets this hit-box has a mount driver.
Link copied to clipboard
@ApiStatus.Internal
abstract fun hide(@NotNull player: @NotNull Player)
Hides this hitbox from player
Link copied to clipboard
@NotNull
abstract fun listener(): @NotNull HitBoxListener
Gets hit-box listener
Link copied to clipboard
abstract fun mount(@NotNull entity: @NotNull Entity)
Mounts this hit-box
Link copied to clipboard
@NotNull
abstract fun mountController(): @NotNull MountController
Gets mount controller
abstract fun mountController(@NotNull controller: @NotNull 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
open fun registry(): @NotNull Optional<EntityTrackerRegistry>
Gets this hitbox's tracker.
Link copied to clipboard
@NotNull
abstract fun relativePosition(): @NotNull 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
@ApiStatus.Internal
abstract fun show(@NotNull player: @NotNull Player)
Shows this hitbox to player
Link copied to clipboard
@NotNull
abstract fun source(): @NotNull Entity
Gets source entity
Link copied to clipboard
@ApiStatus.Internal
abstract fun triggerInteract(@NotNull player: @NotNull Player, @NotNull hand: @NotNull ModelInteractionHand)
Triggers interact with this hitbox
Link copied to clipboard
@ApiStatus.Internal
abstract fun triggerInteractAt(@NotNull player: @NotNull Player, @NotNull hand: @NotNull ModelInteractionHand, @NotNull position: @NotNull Vector)
Triggers interact with this hitbox