LeviLamina
Loading...
Searching...
No Matches
PlayerCommandOrigin.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/legacy/ActorUniqueID.h"
5#include "mc/world/actor/player/Player.h"
6
7// auto generated inclusion list
8#include "mc/common/SubClientId.h"
9#include "mc/legacy/ActorUniqueID.h"
10#include "mc/server/commands/CommandOrigin.h"
11#include "mc/server/commands/CommandOriginType.h"
12#include "mc/server/commands/CommandPermissionLevel.h"
13#include "mc/world/actor/player/AbilitiesIndex.h"
14
15// auto generated forward declare list
16// clang-format off
17class Actor;
18class BlockPos;
19class CompoundTag;
20class Dimension;
21class Level;
23class Player;
24class Vec2;
25class Vec3;
27// clang-format on
28
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mPlayerId;
34 ::ll::TypedStorage<8, 8, ::Level&> mLevel;
35 // NOLINTEND
36
37public:
38 PlayerCommandOrigin(::Level& level, ::ActorUniqueID playerId) : mPlayerId(playerId), mLevel(level) {}
39 // PlayerCommandOrigin(::Player& player) : mPlayerId(player.getOrCreateUniqueID()), mLevel(player.getLevel()) {}
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 // vIndex: 0
45 virtual ~PlayerCommandOrigin() /*override*/ = default;
46
47 // vIndex: 1
48 virtual ::std::string const& getRequestId() const /*override*/;
49
50 // vIndex: 2
51 virtual ::std::string getName() const /*override*/;
52
53 // vIndex: 3
54 virtual ::BlockPos getBlockPosition() const /*override*/;
55
56 // vIndex: 4
57 virtual ::Vec3 getWorldPosition() const /*override*/;
58
59 // vIndex: 5
60 virtual ::std::optional<::Vec2> getRotation() const /*override*/;
61
62 // vIndex: 6
63 virtual ::Level* getLevel() const /*override*/;
64
65 // vIndex: 7
66 virtual ::Dimension* getDimension() const /*override*/;
67
68 // vIndex: 8
69 virtual ::Actor* getEntity() const /*override*/;
70
71 // vIndex: 9
72 virtual ::CommandPermissionLevel getPermissionsLevel() const /*override*/;
73
74 // vIndex: 10
75 virtual ::std::unique_ptr<::CommandOrigin> clone() const /*override*/;
76
77 // vIndex: 11
78 virtual ::std::optional<::BlockPos> getCursorHitBlockPos() const /*override*/;
79
80 // vIndex: 12
81 virtual ::std::optional<::Vec3> getCursorHitPos() const /*override*/;
82
83 // vIndex: 15
84 virtual bool canUseAbility(::AbilitiesIndex abilityIndex) const /*override*/;
85
86 // vIndex: 18
87 virtual bool isSelectorExpansionAllowed() const /*override*/;
88
89 // vIndex: 19
90 virtual ::NetworkIdentifier const& getSourceId() const /*override*/;
91
92 // vIndex: 20
93 virtual ::SubClientId getSourceSubId() const /*override*/;
94
95 // vIndex: 22
96 virtual ::CommandOriginIdentity getIdentity() const /*override*/;
97
98 // vIndex: 23
99 virtual ::CommandOriginType getOriginType() const /*override*/;
100
101 // vIndex: 29
102 virtual ::CompoundTag serialize() const /*override*/;
103
104 // vIndex: 30
105 virtual bool isValid() const /*override*/;
106 // NOLINTEND
107
108public:
109 // member functions
110 // NOLINTBEGIN
111 MCAPI explicit PlayerCommandOrigin(::Player& origin);
112 // NOLINTEND
113
114public:
115 // constructor thunks
116 // NOLINTBEGIN
117 MCAPI void* $ctor(::Player& origin);
118 // NOLINTEND
119
120public:
121 // virtual function thunks
122 // NOLINTBEGIN
123 MCFOLD ::std::string const& $getRequestId() const;
124
125 MCAPI ::std::string $getName() const;
126
127 MCAPI ::BlockPos $getBlockPosition() const;
128
129 MCAPI ::Vec3 $getWorldPosition() const;
130
131 MCAPI ::std::optional<::Vec2> $getRotation() const;
132
133 MCFOLD ::Level* $getLevel() const;
134
135 MCAPI ::Dimension* $getDimension() const;
136
137 MCAPI ::Actor* $getEntity() const;
138
139 MCAPI ::CommandPermissionLevel $getPermissionsLevel() const;
140
141 MCAPI ::std::unique_ptr<::CommandOrigin> $clone() const;
142
143 MCAPI ::std::optional<::BlockPos> $getCursorHitBlockPos() const;
144
145 MCAPI ::std::optional<::Vec3> $getCursorHitPos() const;
146
147 MCAPI bool $canUseAbility(::AbilitiesIndex abilityIndex) const;
148
149 MCFOLD bool $isSelectorExpansionAllowed() const;
150
151 MCAPI ::NetworkIdentifier const& $getSourceId() const;
152
153 MCAPI ::SubClientId $getSourceSubId() const;
154
155 MCAPI ::CommandOriginIdentity $getIdentity() const;
156
157 MCFOLD ::CommandOriginType $getOriginType() const;
158
159 MCAPI ::CompoundTag $serialize() const;
160
161 MCFOLD bool $isValid() const;
162 // NOLINTEND
163
164public:
165 // vftables
166 // NOLINTBEGIN
167 MCNAPI static void** $vftable();
168 // NOLINTEND
169};
Definition Actor.h:102
Definition BlockPos.h:17
Definition CommandOrigin.h:32
Definition CompoundTag.h:13
Definition Dimension.h:83
Definition Level.h:247
Definition NetworkIdentifier.h:10
Definition PlayerCommandOrigin.h:29
static MCAPI void ** $vftable()
Definition Player.h:123
Definition Vec2.h:5
Definition Vec3.h:10
Definition ActorUniqueID.h:5
Definition CommandOriginIdentity.h:5
Definition serialize.h:11