Update Text Component defination
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user