refactor package
This commit is contained in:
21
pkg/protocol/packet/configuration/client/disconnect.go
Normal file
21
pkg/protocol/packet/configuration/client/disconnect.go
Normal file
@ -0,0 +1,21 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"github.com/Tnze/go-mc/chat"
|
||||
"github.com/Tnze/go-mc/data/packetid"
|
||||
)
|
||||
|
||||
//codec:gen
|
||||
type ConfigDisconnect struct {
|
||||
Reason chat.Message
|
||||
}
|
||||
|
||||
func (ConfigDisconnect) PacketID() packetid.ClientboundPacketID {
|
||||
return packetid.ClientboundConfigDisconnect
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ClientboundConfigDisconnect, func() ClientboundPacket {
|
||||
return &ConfigDisconnect{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user