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