attachTo

public void attachTo(Entity vehicle)

Attaches this fake text to an entity with automatic visibility tracking. This will: - Mount the text to the entity - Register with PacketEntityTracker for automatic show/hide based on distance - Handle world changes, respawns, and other edge cases automatically

Use this instead of mountTo() for a fully managed experience.

Parameters

vehicle

The entity to attach to (e.g., a Player)