Files
minego/pkg/protocol/packet/game/server/player_command.go

21 lines
431 B
Go

package server
import "github.com/Tnze/go-mc/data/packetid"
//codec:gen
type PlayerCommand struct {
EntityID int32 `mc:"VarInt"`
ActionID int32 `mc:"VarInt"`
JumpBoost int32 `mc:"VarInt"`
}
func (*PlayerCommand) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundPlayerCommand
}
func init() {
registerPacket(packetid.ServerboundPlayerCommand, func() ServerboundPacket {
return &PlayerCommand{}
})
}