HitBox
Represents a hitbox for a model part, allowing for interaction and collision detection.
Hitboxes are often implemented using invisible entities (like Slimes or Interaction entities) and are linked to specific bones in the model.
Since
1.15.2
Functions
Link copied to clipboard
Dismounts an entity from this hitbox.
Link copied to clipboard
Dismounts all passengers from this hitbox.
Link copied to clipboard
Checks if a dismount operation is forced.
Link copied to clipboard
Checks if this hitbox is being controlled by another entity.
Link copied to clipboard
Checks if this hitbox has a mount driver.
Link copied to clipboard
Hides this hitbox from a specific player.
Link copied to clipboard
Returns the listener associated with this hitbox.
Updates the listener for this hitbox using a builder function.
Sets the listener for this hitbox.
Link copied to clipboard
Mounts an entity onto this hitbox.
Link copied to clipboard
Returns the mount controller for this hitbox.
Sets the mount controller for this hitbox.
Link copied to clipboard
Returns the rendered bone that acts as the position source for this hitbox.
Link copied to clipboard
Returns the entity tracker registry for this hitbox's source entity.
Link copied to clipboard
Returns the relative position of this hitbox to its source entity.
Link copied to clipboard
Removes this hitbox safely.
Link copied to clipboard
Shows this hitbox to a specific player.
Link copied to clipboard
Returns the source entity of this hitbox.