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/entity/components/PlayerPositionModeComponent.h"
7#include "mc/network/MinecraftPacketIds.h"
8#include "mc/network/packet/Packet.h"
9#include "mc/platform/Result.h"
10
11// auto generated forward declare list
12// clang-format off
13class ActorRuntimeID;
14class BinaryStream;
15class Player;
17class Vec2;
18class Vec3;
19struct PlayerInputTick;
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 // virtual functions
40 // NOLINTBEGIN
41 // vIndex: 1
42 virtual ::MinecraftPacketIds getId() const /*override*/;
43
44 // vIndex: 2
45 virtual ::std::string getName() const /*override*/;
46
47 // vIndex: 4
48 virtual void write(::BinaryStream& stream) const /*override*/;
49
50 // vIndex: 7
51 virtual bool isValid() const /*override*/;
52
53 // vIndex: 8
54 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
55
56 // vIndex: 0
57 virtual ~MovePlayerPacket() /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI MovePlayerPacket();
64
65 MCAPI MovePlayerPacket(::Player const& player, ::Vec3 const& pos);
66
67 MCAPI MovePlayerPacket(
68 ::Player const& player,
69 ::PlayerPositionModeComponent::PositionMode resetPosition,
70 int cause,
71 int sourceEntityType
72 );
73 // NOLINTEND
74
75public:
76 // constructor thunks
77 // NOLINTBEGIN
78 MCAPI void* $ctor();
79
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 MCAPI static void** $vftable();
114 // NOLINTEND
115};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:10
Definition MovePlayerPacket.h:22
Definition Packet.h:26
Definition Player.h:119
Definition ReadOnlyBinaryStream.h:8
Definition Vec2.h:5
Definition Vec3.h:10
Definition PlayerInputTick.h:5