refactor package
This commit is contained in:
19
pkg/protocol/packet/configuration/client/transfer.go
Normal file
19
pkg/protocol/packet/configuration/client/transfer.go
Normal file
@ -0,0 +1,19 @@
|
||||
package client
|
||||
|
||||
import "github.com/Tnze/go-mc/data/packetid"
|
||||
|
||||
//codec:gen
|
||||
type ConfigTransfer struct {
|
||||
Host string
|
||||
Port int32 `mc:"VarInt"`
|
||||
}
|
||||
|
||||
func (ConfigTransfer) PacketID() packetid.ClientboundPacketID {
|
||||
return packetid.ClientboundConfigTransfer
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ClientboundConfigTransfer, func() ClientboundPacket {
|
||||
return &ConfigTransfer{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user