refactor package
This commit is contained in:
20
pkg/protocol/packet/game/server/set_command_minecart.go
Normal file
20
pkg/protocol/packet/game/server/set_command_minecart.go
Normal file
@ -0,0 +1,20 @@
|
||||
package server
|
||||
|
||||
import "github.com/Tnze/go-mc/data/packetid"
|
||||
|
||||
//codec:gen
|
||||
type SetCommandMinecart struct {
|
||||
EntityID int32 `mc:"VarInt"`
|
||||
Command string
|
||||
TrackOutput bool
|
||||
}
|
||||
|
||||
func (SetCommandMinecart) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundSetCommandMinecart
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ServerboundSetCommandMinecart, func() ServerboundPacket {
|
||||
return &SetCommandMinecart{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user