Files
minego/pkg/protocol/packet/game/server/change_difficulty.go
2025-08-27 20:28:44 +08:00

19 lines
383 B
Go

package server
import "git.konjactw.dev/falloutBot/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{}
})
}