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