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
Link copied to clipboard
Builder for HitBoxListener.
Functions
Link copied to clipboard
Creates a new builder for HitBoxListener.
Link copied to clipboard
Called when the hitbox receives damage.
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
Called when the hitbox receives an interaction.
Link copied to clipboard
Called when the hitbox receives an interaction at a specific position.
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.