BetterModel
Toggle table of contents
1.6.2-SNAPSHOT-175
api
Platform filter
api
Switch theme
Search in API
BetterModel
api
/
kr.toxicity.model.api.nms
/
HitBoxListener
Hit
Box
Listener
interface
HitBoxListener
A listener of hit-box
Members
Types
Builder
Link copied to clipboard
open
class
Builder
Builder
On
Damage
Link copied to clipboard
interface
OnDamage
Properties
EMPTY
Link copied to clipboard
val
EMPTY
:
HitBoxListener
Empty listener
Functions
builder
Link copied to clipboard
@
NotNull
open
fun
builder
(
)
:
@
NotNull
HitBoxListener.Builder
Creates build of hit-box listener
damage
Link copied to clipboard
abstract
fun
damage
(
@
NotNull
hitBox
:
@
NotNull
HitBox
,
@
NotNull
source
:
@
NotNull
ModelDamageSource
,
damage
:
Double
)
:
Boolean
Listens to hit-box damage
dismount
Link copied to clipboard
abstract
fun
dismount
(
@
NotNull
hitBox
:
@
NotNull
HitBox
,
@
NotNull
entity
:
@
NotNull
Entity
)
Listens to hit-box dismount
mount
Link copied to clipboard
abstract
fun
mount
(
@
NotNull
hitBox
:
@
NotNull
HitBox
,
@
NotNull
entity
:
@
NotNull
Entity
)
Listens to hit-box mount
remove
Link copied to clipboard
abstract
fun
remove
(
@
NotNull
hitBox
:
@
NotNull
HitBox
)
Listens to hit-box remove
sync
Link copied to clipboard
abstract
fun
sync
(
@
NotNull
hitBox
:
@
NotNull
HitBox
)
Listens to hit-box tick