1.21.6 Clientbound PlayState Packets

This commit is contained in:
2025-06-20 04:22:08 +08:00
parent e40ed2e534
commit 195d34f32d
204 changed files with 10118 additions and 3287 deletions

View File

@ -0,0 +1,28 @@
package client
import (
"github.com/Tnze/go-mc/chat"
"github.com/Tnze/go-mc/nbt"
)
//codec:gen
type ScoreNumberFormat struct {
NumberFormat int32
//opt:enum:NumberFormat:1
StyledTag nbt.RawMessage `mc:"NBT"`
//opt:enum:NumberFormat:2
Content chat.Message
}
//codec:gen
type UpdateScore struct {
EntityName string
ObjectiveName string
Value int32 `mc:"VarInt"`
HasDisplayName bool
//opt:optional:HasDisplayName
DisplayName chat.Message
HasScoreFormat bool
//opt:optional:HasScoreFormat
NumberFormat ScoreNumberFormat
}