refactor package
This commit is contained in:
17
pkg/protocol/packet/game/client/respawn.go
Normal file
17
pkg/protocol/packet/game/client/respawn.go
Normal file
@ -0,0 +1,17 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"github.com/Tnze/go-mc/data/packetid"
|
||||
)
|
||||
|
||||
var _ ClientboundPacket = (*Respawn)(nil)
|
||||
|
||||
//codec:gen
|
||||
type Respawn struct {
|
||||
CommonPlayerSpawnInfo CommonPlayerSpawnInfo
|
||||
DataToKeep uint8
|
||||
}
|
||||
|
||||
func (Respawn) ClientboundPacketID() packetid.ClientboundPacketID {
|
||||
return packetid.ClientboundRespawn
|
||||
}
|
Reference in New Issue
Block a user