1.21.6 Clientbound PlayState Packets
This commit is contained in:
28
codec/packet/game/client/set_score.go
Normal file
28
codec/packet/game/client/set_score.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user