HitBoxListener
interface HitBoxListener
Listens for events related to a HitBox, such as damage, interaction, and mounting.
This interface allows for custom behavior when a hitbox is interacted with.
Since
1.15.2
Types
Functions
Link copied to clipboard
Creates a new builder for HitBoxListener.
Link copied to clipboard
abstract fun dismount(@NotNull hitBox: @NotNull HitBox, @NotNull PlatformEntity: @NotNull PlatformEntity)
Called when an PlatformEntity dismounts the hitbox.
Link copied to clipboard
abstract fun mount(@NotNull hitBox: @NotNull HitBox, @NotNull PlatformEntity: @NotNull PlatformEntity)
Called when an PlatformEntity mounts the hitbox.
Link copied to clipboard
Creates a builder initialized with this listener's current handlers.