LeviLamina
Loading...
Searching...
No Matches
MovePlayerPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec2.h"
7#include "mc/deps/core/math/Vec3.h"
8#include "mc/entity/components/PlayerPositionModeComponent.h"
9#include "mc/legacy/ActorRuntimeID.h"
10#include "mc/network/MinecraftPacketIds.h"
11#include "mc/network/Packet.h"
12#include "mc/network/packet/PlayerInputTick.h"
13#include "mc/platform/Result.h"
14
15// auto generated forward declare list
16// clang-format off
17class BinaryStream;
18class Player;
20// clang-format on
21
22class MovePlayerPacket : public ::Packet {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 8, ::ActorRuntimeID> mPlayerID;
27 ::ll::TypedStorage<4, 12, ::Vec3> mPos;
28 ::ll::TypedStorage<4, 8, ::Vec2> mRot;
29 ::ll::TypedStorage<4, 4, float> mYHeadRot;
30 ::ll::TypedStorage<1, 1, ::PlayerPositionModeComponent::PositionMode> mResetPosition;
31 ::ll::TypedStorage<1, 1, bool> mOnGround;
32 ::ll::TypedStorage<8, 8, ::ActorRuntimeID> mRidingID;
33 ::ll::TypedStorage<4, 4, int> mCause;
34 ::ll::TypedStorage<4, 4, int> mSourceEntityType;
35 ::ll::TypedStorage<8, 8, ::PlayerInputTick> mTick;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 MovePlayerPacket();
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 virtual ::MinecraftPacketIds getId() const /*override*/;
46
47 virtual ::std::string_view getName() const /*override*/;
48
49 virtual void write(::BinaryStream& stream) const /*override*/;
50
51 virtual bool isValid() const /*override*/;
52
53 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI MovePlayerPacket(::Player const& player, ::Vec3 const& pos);
60
61 MCAPI MovePlayerPacket(
62 ::Player const& player,
63 ::PlayerPositionModeComponent::PositionMode resetPosition,
64 int cause,
65 int sourceEntityType
66 );
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCAPI void* $ctor(::Player const& player, ::Vec3 const& pos);
73
74 MCAPI void* $ctor(
75 ::Player const& player,
76 ::PlayerPositionModeComponent::PositionMode resetPosition,
77 int cause,
78 int sourceEntityType
79 );
80 // NOLINTEND
81
82public:
83 // virtual function thunks
84 // NOLINTBEGIN
85 MCFOLD ::MinecraftPacketIds $getId() const;
86
87 MCAPI ::std::string_view $getName() const;
88
89 MCAPI void $write(::BinaryStream& stream) const;
90
91 MCAPI bool $isValid() const;
92
93 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
94
95
96 // NOLINTEND
97
98public:
99 // vftables
100 // NOLINTBEGIN
101 MCNAPI static void** $vftable();
102 // NOLINTEND
103};
Definition BinaryStream.h:11
static MCAPI void ** $vftable()
Definition Player.h:136
Definition ReadOnlyBinaryStream.h:8
Definition Vec3.h:10