LeviLamina
Loading...
Searching...
No Matches
AddPlayerPacket.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/deps/core/platform/BuildPlatform.h"
9#include "mc/legacy/ActorRuntimeID.h"
10#include "mc/legacy/ActorUniqueID.h"
11#include "mc/network/MinecraftPacketIds.h"
12#include "mc/network/Packet.h"
13#include "mc/platform/Result.h"
14#include "mc/platform/UUID.h"
15#include "mc/world/actor/player/LayeredAbilities.h"
16#include "mc/world/actor/state/PropertySyncData.h"
17#include "mc/world/item/NetworkItemStackDescriptor.h"
18#include "mc/world/level/GameType.h"
19
20// auto generated forward declare list
21// clang-format off
22class BinaryStream;
23class BlockPalette;
24class DataItem;
25class ItemStack;
26class Player;
29struct ActorLink;
30// clang-format on
31
32class AddPlayerPacket : public ::Packet {
33public:
34 // member variables
35 // NOLINTBEGIN
36 ::ll::TypedStorage<8, 24, ::std::vector<::ActorLink>> mLinks;
37 ::ll::TypedStorage<8, 32, ::std::string> mName;
38 ::ll::TypedStorage<8, 16, ::mce::UUID> mUuid;
39 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mEntityId;
40 ::ll::TypedStorage<8, 8, ::ActorRuntimeID> mRuntimeId;
41 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOnlineId;
42 ::ll::TypedStorage<4, 12, ::Vec3> mPos;
43 ::ll::TypedStorage<4, 12, ::Vec3> mVelocity;
44 ::ll::TypedStorage<4, 8, ::Vec2> mRot;
45 ::ll::TypedStorage<4, 4, float> mYHeadRot;
46 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::DataItem>>> mUnpack;
47 ::ll::TypedStorage<8, 1464, ::LayeredAbilities> mAbilities;
48 ::ll::TypedStorage<8, 32, ::std::string> mDeviceId;
49 ::ll::TypedStorage<4, 4, ::BuildPlatform> mBuildPlatform;
50 ::ll::TypedStorage<4, 4, ::GameType> mPlayerGameType;
51 ::ll::TypedStorage<8, 96, ::NetworkItemStackDescriptor> mCarriedItem;
52 ::ll::TypedStorage<8, 8, ::SynchedActorDataEntityWrapper const*> mEntityData;
53 ::ll::TypedStorage<8, 48, ::PropertySyncData> mSynchedProperties;
54 // NOLINTEND
55
56public:
57 // virtual functions
58 // NOLINTBEGIN
59 virtual ~AddPlayerPacket() /*override*/;
60
61 virtual ::MinecraftPacketIds getId() const /*override*/;
62
63 virtual ::std::string_view getName() const /*override*/;
64
65 virtual void write(::BinaryStream& stream) const /*override*/;
66
67 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
68 // NOLINTEND
69
70public:
71 // member functions
72 // NOLINTBEGIN
73 MCAPI AddPlayerPacket();
74
75 MCAPI explicit AddPlayerPacket(::Player& p);
76
77#ifdef LL_PLAT_C
78 MCAPI ::ItemStack getCarriedItem(::BlockPalette& blockPalette, bool isClientSide) const;
79
80 MCFOLD ::PropertySyncData const& getSynchedProperties() const;
81#endif
82 // NOLINTEND
83
84public:
85 // constructor thunks
86 // NOLINTBEGIN
87 MCAPI void* $ctor();
88
89 MCAPI void* $ctor(::Player& p);
90 // NOLINTEND
91
92public:
93 // destructor thunk
94 // NOLINTBEGIN
95 MCAPI void $dtor();
96 // NOLINTEND
97
98public:
99 // virtual function thunks
100 // NOLINTBEGIN
101 MCFOLD ::MinecraftPacketIds $getId() const;
102
103 MCAPI ::std::string_view $getName() const;
104
105 MCAPI void $write(::BinaryStream& stream) const;
106
107 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
108
109
110 // NOLINTEND
111
112public:
113 // vftables
114 // NOLINTBEGIN
115 MCNAPI static void** $vftable();
116 // NOLINTEND
117};
static MCAPI void ** $vftable()
Definition BinaryStream.h:11
Definition BlockPalette.h:21
Definition DataItem.h:14
Definition ItemStack.h:35
Definition Player.h:136
Definition ReadOnlyBinaryStream.h:8
Definition SynchedActorDataEntityWrapper.h:24