refactor package
This commit is contained in:
18
pkg/protocol/packet/game/server/container_close.go
Normal file
18
pkg/protocol/packet/game/server/container_close.go
Normal file
@ -0,0 +1,18 @@
|
||||
package server
|
||||
|
||||
import "github.com/Tnze/go-mc/data/packetid"
|
||||
|
||||
//codec:gen
|
||||
type ContainerClose struct {
|
||||
WindowID int32 `mc:"VarInt"`
|
||||
}
|
||||
|
||||
func (ContainerClose) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundContainerClose
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ServerboundContainerClose, func() ServerboundPacket {
|
||||
return &ContainerClose{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user