refactor package
This commit is contained in:
22
pkg/protocol/packet/game/server/pick_item_from_block.go
Normal file
22
pkg/protocol/packet/game/server/pick_item_from_block.go
Normal file
@ -0,0 +1,22 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/Tnze/go-mc/data/packetid"
|
||||
pk "github.com/Tnze/go-mc/net/packet"
|
||||
)
|
||||
|
||||
//codec:gen
|
||||
type PickItemFromBlock struct {
|
||||
Location pk.Position
|
||||
IncludeData bool
|
||||
}
|
||||
|
||||
func (PickItemFromBlock) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundPickItemFromBlock
|
||||
}
|
||||
|
||||
func init() {
|
||||
registerPacket(packetid.ServerboundPickItemFromBlock, func() ServerboundPacket {
|
||||
return &PickItemFromBlock{}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user