HitBoxListener

interface HitBoxListener

A listener of hit-box

Types

Link copied to clipboard
open class Builder
Builder
Link copied to clipboard
interface OnDamage
On damage

Properties

Link copied to clipboard
Empty listener

Functions

Link copied to clipboard
@NotNull
open fun builder(): @NotNull HitBoxListener.Builder
Creates builder of hitbox listener
Link copied to clipboard
abstract fun damage(@NotNull hitBox: @NotNull HitBox, @NotNull source: @NotNull ModelDamageSource, damage: Double): Boolean
Listens to hit-box damage
Link copied to clipboard
abstract fun dismount(@NotNull hitBox: @NotNull HitBox, @NotNull entity: @NotNull Entity)
Listens to hit-box dismount
Link copied to clipboard
abstract fun mount(@NotNull hitBox: @NotNull HitBox, @NotNull entity: @NotNull Entity)
Listens to hit-box mount
Link copied to clipboard
abstract fun remove(@NotNull hitBox: @NotNull HitBox)
Listens to hit-box remove
Link copied to clipboard
abstract fun sync(@NotNull hitBox: @NotNull HitBox)
Listens to hit-box tick
Link copied to clipboard
@NotNull
open fun toBuilder(): @NotNull HitBoxListener.Builder
Creates builder by original hitbox listener