Update Text Component defination

This commit is contained in:
Tnze
2024-04-27 22:09:56 +08:00
parent fee324e25a
commit 79c8b35389
6 changed files with 149 additions and 90 deletions

View File

@ -1,12 +1,10 @@
package chat
import "encoding/json"
// HoverEvent defines an event that occurs when this component hovered over.
type HoverEvent struct {
Action string `json:"action"`
Contents json.RawMessage `json:"contents"` // Didn't handled yet
Value Message `json:"value"` // Legacy
Action string `json:"action" nbt:"action"`
Contents any `json:"contents" nbt:"contents"` // Didn't handled yet
Value Message `json:"value" nbt:"value"` // Legacy
}
type HoverSub struct {