21 lines
403 B
Go
21 lines
403 B
Go
package server
|
|
|
|
import "github.com/Tnze/go-mc/data/packetid"
|
|
|
|
//codec:gen
|
|
type PlaceRecipe struct {
|
|
WindowID int32 `mc:"VarInt"`
|
|
RecipeID int32 `mc:"VarInt"`
|
|
MakeAll bool
|
|
}
|
|
|
|
func (*PlaceRecipe) PacketID() packetid.ServerboundPacketID {
|
|
return packetid.ServerboundPlaceRecipe
|
|
}
|
|
|
|
func init() {
|
|
registerPacket(packetid.ServerboundPlaceRecipe, func() ServerboundPacket {
|
|
return &PlaceRecipe{}
|
|
})
|
|
}
|