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

@ -1,8 +1,7 @@
package component
import (
"git.konjactw.dev/patyhank/minego/codec/data/slot"
pk "github.com/Tnze/go-mc/net/packet"
"git.konjactw.dev/patyhank/minego/codec/slot"
)
//codec:gen
@ -12,8 +11,8 @@ type AttributeModifiers struct {
//codec:gen
type AttributeModifier struct {
AttributeID int32 `mc:"VarInt"`
ModifierID pk.Identifier
AttributeID int32 `mc:"VarInt"`
ModifierID string `mc:"Identifier"`
Value float64
Operation int32 `mc:"VarInt"` // 0=Add, 1=Multiply base, 2=Multiply total
Slot int32 `mc:"VarInt"` // 0=Any, 1=Main hand, 2=Off hand, etc.