Package kr.toxicity.model.api.nms
Interface HitBoxListener
public interface HitBoxListener
A listener of hit-box
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilderstatic interfaceOn damage -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HitBoxListener.Builderbuilder()Creates build of hit-box listenerbooleandamage(@NotNull HitBox hitBox, @NotNull ModelDamageSource source, double damage) Listens to hit-box damagevoidListens to hit-box dismountvoidListens to hit-box mountvoidListens to hit-box removevoidListens to hit-box tickdefault @NotNull HitBoxListener.Builder
-
Field Details
-
EMPTY
Empty listener
-
-
Method Details
-
builder
Creates build of hit-box listener- Returns:
- listener builder
-
toBuilder
-
sync
Listens to hit-box tick- Parameters:
hitBox- target hit-box
-
damage
boolean damage(@NotNull @NotNull HitBox hitBox, @NotNull @NotNull ModelDamageSource source, double damage) Listens to hit-box damage- Parameters:
hitBox- target hit-boxsource- damage sourcedamage- damage- Returns:
- cancel
-
remove
Listens to hit-box remove- Parameters:
hitBox- target hit-box
-
mount
Listens to hit-box mount- Parameters:
hitBox- target hit-boxentity- entity
-
dismount
Listens to hit-box dismount- Parameters:
hitBox- target hit-boxentity- entity
-