1.21.6 Serverbound PlayState Packets
This commit is contained in:
23
codec/packet/game/server/sign_update.go
Normal file
23
codec/packet/game/server/sign_update.go
Normal file
@ -0,0 +1,23 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/Tnze/go-mc/data/packetid"
|
||||
pk "github.com/Tnze/go-mc/net/packet"
|
||||
)
|
||||
|
||||
//codec:gen
|
||||
type SignUpdate struct {
|
||||
Location pk.Position
|
||||
IsFrontText bool
|
||||
Line1, Line2, Line3, Line4 string
|
||||
}
|
||||
|
||||
func (SignUpdate) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundSignUpdate
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ServerboundSignUpdate, func() ServerboundPacket {
|
||||
return &SignUpdate{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user