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