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