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,23 +1,28 @@
package component
import (
"git.konjactw.dev/patyhank/minego/codec/data/slot"
"git.konjactw.dev/patyhank/minego/codec/slot"
pk "github.com/Tnze/go-mc/net/packet"
)
//codec:gen
type Equippable struct {
Slot int32 `mc:"VarInt"` // 0=mainhand, 1=feet, 2=legs, etc.
EquipSound SoundEvent
HasModel bool
Model pk.Option[pk.Identifier, *pk.Identifier]
HasCameraOverlay bool
CameraOverlay pk.Option[pk.Identifier, *pk.Identifier]
Slot int32 `mc:"VarInt"` // 0=mainhand, 1=feet, 2=legs, etc.
EquipSoundID int32 `mc:"VarInt"`
//opt:id:EquipSoundID
EquipSoundEvent *SoundEvent
HasModel bool
//opt:optional:HasModel
Model string `mc:"Identifier"`
HasCameraOverlay bool
//opt:optional:HasCameraOverlay
CameraOverlay string `mc:"Identifier"`
HasAllowedEntities bool
AllowedEntities pk.Option[pk.IDSet, *pk.IDSet]
Dispensable bool
Swappable bool
DamageOnHurt bool
//opt:optional:HasAllowedEntities
AllowedEntitiesID pk.IDSet
Dispensable bool
Swappable bool
DamageOnHurt bool
}
func (*Equippable) Type() slot.ComponentID {