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/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
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 // vIndex: 1
46 virtual ::MinecraftPacketIds getId() const /*override*/;
47
48 // vIndex: 2
49 virtual ::std::string getName() const /*override*/;
50
51 // vIndex: 4
52 virtual void write(::BinaryStream& stream) const /*override*/;
53
54 // vIndex: 7
55 virtual bool isValid() const /*override*/;
56
57 // vIndex: 8
58 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
59
60 // vIndex: 0
61 virtual ~MovePlayerPacket() /*override*/;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI MovePlayerPacket(::Player const& player, ::Vec3 const& pos);
68
69 MCAPI MovePlayerPacket(
70 ::Player const& player,
71 ::PlayerPositionModeComponent::PositionMode resetPosition,
72 int cause,
73 int sourceEntityType
74 );
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCAPI void* $ctor(::Player const& player, ::Vec3 const& pos);
81
82 MCAPI void* $ctor(
83 ::Player const& player,
84 ::PlayerPositionModeComponent::PositionMode resetPosition,
85 int cause,
86 int sourceEntityType
87 );
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93 MCFOLD void $dtor();
94 // NOLINTEND
95
96public:
97 // virtual function thunks
98 // NOLINTBEGIN
99 MCFOLD ::MinecraftPacketIds $getId() const;
100
101 MCAPI ::std::string $getName() const;
102
103 MCAPI void $write(::BinaryStream& stream) const;
104
105 MCAPI bool $isValid() const;
106
107 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
108 // NOLINTEND
109
110public:
111 // vftables
112 // NOLINTBEGIN
113 MCNAPI static void** $vftable();
114 // NOLINTEND
115};
Definition BinaryStream.h:10
Definition MovePlayerPacket.h:22
static MCAPI void ** $vftable()
Definition Packet.h:26
Definition Player.h:119
Definition ReadOnlyBinaryStream.h:8
Definition Vec3.h:10