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