LeviLamina
Loading...
Searching...
No Matches
ServerCommandOrigin.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/server/ServerLevel.h"
5
6// auto generated inclusion list
7#include "mc/deps/core/utility/AutomaticID.h"
8#include "mc/server/commands/CommandOrigin.h"
9#include "mc/server/commands/CommandOriginType.h"
10#include "mc/server/commands/CommandPermissionLevel.h"
11
12// auto generated forward declare list
13// clang-format off
14class Actor;
15class BlockPos;
16class CompoundTag;
17class Dimension;
18class Level;
19class ServerLevel;
20class Vec2;
21class Vec3;
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 8, ::ServerLevel&> mServerLevel;
29 ::ll::TypedStorage<8, 32, ::std::string> mRequestId;
30 ::ll::TypedStorage<1, 1, ::CommandPermissionLevel> mCommandPermissionLevel;
31 ::ll::TypedStorage<4, 4, ::DimensionType> mDimensionType;
32 // NOLINTEND
33
34public:
36 std::string const& requestId,
37 ServerLevel& level,
38 CommandPermissionLevel permission,
39 DimensionType dimensionType
40 )
41 : mServerLevel(level),
42 mRequestId(requestId),
43 mCommandPermissionLevel(permission),
44 mDimensionType(dimensionType) {}
45
46public:
47 // virtual functions
48 // NOLINTBEGIN
49 // vIndex: 0
50 virtual ~ServerCommandOrigin() /*override*/;
51
52 // vIndex: 1
53 virtual ::std::string const& getRequestId() const /*override*/;
54
55 // vIndex: 2
56 virtual ::std::string getName() const /*override*/;
57
58 // vIndex: 3
59 virtual ::BlockPos getBlockPosition() const /*override*/;
60
61 // vIndex: 4
62 virtual ::Vec3 getWorldPosition() const /*override*/;
63
64 // vIndex: 5
65 virtual ::std::optional<::Vec2> getRotation() const /*override*/;
66
67 // vIndex: 6
68 virtual ::Level* getLevel() const /*override*/;
69
70 // vIndex: 7
71 virtual ::Dimension* getDimension() const /*override*/;
72
73 // vIndex: 8
74 virtual ::Actor* getEntity() const /*override*/;
75
76 // vIndex: 9
77 virtual ::CommandPermissionLevel getPermissionsLevel() const /*override*/;
78
79 // vIndex: 10
80 virtual ::std::unique_ptr<::CommandOrigin> clone() const /*override*/;
81
82 // vIndex: 17
83 virtual bool canUseCommandsWithoutCheatsEnabled() const /*override*/;
84
85 // vIndex: 18
86 virtual bool isSelectorExpansionAllowed() const /*override*/;
87
88 // vIndex: 23
89 virtual ::CommandOriginType getOriginType() const /*override*/;
90
91 // vIndex: 29
92 virtual ::CompoundTag serialize() const /*override*/;
93
94 // vIndex: 30
95 virtual bool isValid() const /*override*/;
96 // NOLINTEND
97
98public:
99 // static functions
100 // NOLINTBEGIN
101 MCAPI static ::std::unique_ptr<::ServerCommandOrigin> load(::CompoundTag const& tag, ::ServerLevel& level);
102 // NOLINTEND
103
104public:
105 // destructor thunk
106 // NOLINTBEGIN
107 MCAPI void $dtor();
108 // NOLINTEND
109
110public:
111 // virtual function thunks
112 // NOLINTBEGIN
113 MCFOLD ::std::string const& $getRequestId() const;
114
115 MCAPI ::std::string $getName() const;
116
117 MCFOLD ::BlockPos $getBlockPosition() const;
118
119 MCFOLD ::Vec3 $getWorldPosition() const;
120
121 MCFOLD ::std::optional<::Vec2> $getRotation() const;
122
123 MCFOLD ::Level* $getLevel() const;
124
125 MCAPI ::Dimension* $getDimension() const;
126
127 MCFOLD ::Actor* $getEntity() const;
128
129 MCFOLD ::CommandPermissionLevel $getPermissionsLevel() const;
130
131 MCAPI ::std::unique_ptr<::CommandOrigin> $clone() const;
132
133 MCFOLD bool $canUseCommandsWithoutCheatsEnabled() const;
134
135 MCFOLD bool $isSelectorExpansionAllowed() const;
136
137 MCFOLD ::CommandOriginType $getOriginType() const;
138
139 MCAPI ::CompoundTag $serialize() const;
140
141 MCFOLD bool $isValid() const;
142 // NOLINTEND
143
144public:
145 // vftables
146 // NOLINTBEGIN
147 MCAPI static void** $vftable();
148 // NOLINTEND
149};
Definition Actor.h:104
Definition AutomaticID.h:6
Definition BlockPos.h:18
Definition CommandOrigin.h:32
Definition CompoundTag.h:13
Definition Dimension.h:83
Definition Level.h:234
Definition ServerCommandOrigin.h:24
Definition ServerLevel.h:52
Definition Vec2.h:5
Definition Vec3.h:10
Definition serialize.h:11