19 lines
371 B
Go
19 lines
371 B
Go
package server
|
|
|
|
import "github.com/Tnze/go-mc/data/packetid"
|
|
|
|
//codec:gen
|
|
type ChangeDifficulty struct {
|
|
Difficulty uint8
|
|
}
|
|
|
|
func (*ChangeDifficulty) PacketID() packetid.ServerboundPacketID {
|
|
return packetid.ServerboundChangeDifficulty
|
|
}
|
|
|
|
func init() {
|
|
registerPacket(packetid.ServerboundChangeDifficulty, func() ServerboundPacket {
|
|
return &ChangeDifficulty{}
|
|
})
|
|
}
|