HitBoxListener interface provides a builder-based system for handling events related to hitboxes, including interactions, damage, mounting, and lifecycle events.
Class Information
Package:kr.toxicity.model.api.nmsType: Interface
Since: 1.15.2
Overview
Hitbox listeners enable custom behavior when players or entities interact with model hitboxes. The builder pattern allows composing multiple event handlers together.Creating Listeners
Empty Listener
Builder Creation
Event Handlers
Interaction Events
Basic Interaction
Interact At Position
Damage Events
Mount Events
Entity Mounted
Entity Dismounted
Lifecycle Events
Creation
Removal
Tick Synchronization
Generic Event Handling
Builder Methods
All builder methods return the builder for chaining:Modifying Existing Listeners
Internal Methods
Complete Examples
Interactive NPC
Combat Target Dummy
Rideable Vehicle
Collectible Item
See Also
- HitBox - Hitbox management and operations
- RenderedBone - Creating hitboxes on bones
- HitBoxEvent - Event types and handling
