refactor package
This commit is contained in:
20
pkg/protocol/packet/game/server/seen_advancements.go
Normal file
20
pkg/protocol/packet/game/server/seen_advancements.go
Normal file
@ -0,0 +1,20 @@
|
||||
package server
|
||||
|
||||
import "github.com/Tnze/go-mc/data/packetid"
|
||||
|
||||
//codec:gen
|
||||
type SeenAdvancements struct {
|
||||
Action int32 `mc:"VarInt"`
|
||||
//opt:enum:Action:0
|
||||
TabID string `mc:"Identifier"`
|
||||
}
|
||||
|
||||
func (SeenAdvancements) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundSeenAdvancements
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ServerboundSeenAdvancements, func() ServerboundPacket {
|
||||
return &SeenAdvancements{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user