Hello.
I'm trying to create a simple client side forge modification that will resend the text to the chat from bossbar.
Eg. Bossbar appear with text "Hello world" and I want player entity (me) to automatically resend "Hello world" to chat.
As far as I know how to send message I have no idea how can I access bossbar data. I tried to read forge documentation but unfortunately I didn't find what I need.
I would be grateful if you join some code snippet with some example because I'm still learning. ( to be clear, I'm not asking for ready code )
(I'm aiming for mod for 1.14.4 or above)
Thanks