HitBox interface represents an interactive collision box attached to a bone. Hitboxes enable player interaction, damage detection, and entity mounting for models.
Class Information
Package:kr.toxicity.model.api.nmsType: Interface
Extends:
IdentifiableSince: 1.15.2
Overview
Hitboxes are typically implemented using invisible entities (like Slimes or Interaction entities) that follow bone positions. They enable:- Click/interact detection
- Damage/attack detection
- Entity mounting and riding
- Custom collision shapes per bone
Creation
Hitboxes are created throughRenderedBone:
Identification
Interaction Events
Internal Trigger Methods
These methods are called internally by the NMS implementation:HitBoxListener to handle these events.
Visibility Control
Position and Transform
Mounting System
Mount Controller
Mounting Entities
Event Handling
Registry Access
Lifecycle
Complete Example: Interactive Door
Complete Example: Rideable Mount
See Also
- HitBoxListener - Event handling for hitboxes
- RenderedBone - Creating and managing hitboxes
- MountController - Configuring mount behavior
