Solved How to set the hover event for the Component in adventure api?

Sheepion

New member
Feb 27, 2022
9
1
3
China
I want to send my item's information to the chat channel so every player in the server can see its name and lore, but I can't understand how to use HoverEvent.ShowItem.
I am using paper-api 1.18.1-R0.1-SNAPSHOT.