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

24 lines
470 B
Go

package server
import (
"git.konjactw.dev/falloutBot/go-mc/data/packetid"
pk "git.konjactw.dev/falloutBot/go-mc/net/packet"
)
//codec:gen
type SetTestBlock struct {
Position pk.Position
Mode int32 `mc:"VarInt"`
Message string
}
func (*SetTestBlock) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundSetTestBlock
}
func init() {
registerPacket(packetid.ServerboundSetTestBlock, func() ServerboundPacket {
return &SetTestBlock{}
})
}