Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
PrecompiledCommandOrigin.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/CommandOrigin.h"
7#include "mc/server/commands/CommandOriginType.h"
8#include "mc/server/commands/CommandPermissionLevel.h"
9#include "mc/world/actor/player/AbilitiesIndex.h"
10
11// auto generated forward declare list
12// clang-format off
13class Actor;
14class BlockPos;
15class CompoundTag;
16class Dimension;
17class Level;
18class Vec2;
19class Vec3;
20// clang-format on
21
22class PrecompiledCommandOrigin : public ::CommandOrigin {
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual ~PrecompiledCommandOrigin() /*override*/ = default;
27
28 virtual ::std::string const& getRequestId() const /*override*/;
29
30 virtual ::std::string getName() const /*override*/;
31
32 virtual ::BlockPos getBlockPosition() const /*override*/;
33
34 virtual ::Vec3 getWorldPosition() const /*override*/;
35
36 virtual ::std::optional<::Vec2> getRotation() const /*override*/;
37
38 virtual ::Level* getLevel() const /*override*/;
39
40 virtual ::Dimension* getDimension() const /*override*/;
41
42 virtual ::Actor* getEntity() const /*override*/;
43
44 virtual ::CommandPermissionLevel getPermissionsLevel() const /*override*/;
45
46 virtual ::std::unique_ptr<::CommandOrigin> clone() const /*override*/;
47
48 virtual ::CommandOriginType getOriginType() const /*override*/;
49
50 virtual bool canUseCommandsWithoutCheatsEnabled() const /*override*/;
51
52 virtual bool isSelectorExpansionAllowed() const /*override*/;
53
54 virtual bool hasMessagePerms() const /*override*/;
55
56 virtual bool hasChatPerms() const /*override*/;
57
58 virtual bool hasTellPerms() const /*override*/;
59
60 virtual bool canUseAbility(::AbilitiesIndex abilityIndex) const /*override*/;
61
62 virtual bool isWorldBuilder() const /*override*/;
63
64 virtual ::CompoundTag serialize() const /*override*/;
65
66 virtual bool isValid() const /*override*/;
67 // NOLINTEND
68
69public:
70 // virtual function thunks
71 // NOLINTBEGIN
72 MCNAPI ::std::string const& $getRequestId() const;
73
74 MCNAPI ::std::string $getName() const;
75
76 MCNAPI ::BlockPos $getBlockPosition() const;
77
78 MCNAPI ::Vec3 $getWorldPosition() const;
79
80 MCNAPI ::std::optional<::Vec2> $getRotation() const;
81
82 MCNAPI ::Level* $getLevel() const;
83
84 MCNAPI ::Dimension* $getDimension() const;
85
86 MCNAPI ::Actor* $getEntity() const;
87
88 MCNAPI ::CommandPermissionLevel $getPermissionsLevel() const;
89
90 MCNAPI ::std::unique_ptr<::CommandOrigin> $clone() const;
91
92 MCNAPI ::CommandOriginType $getOriginType() const;
93
95
96 MCNAPI bool $isSelectorExpansionAllowed() const;
97
98 MCNAPI bool $hasMessagePerms() const;
99
100 MCNAPI bool $hasChatPerms() const;
101
102 MCNAPI bool $hasTellPerms() const;
103
104 MCNAPI bool $canUseAbility(::AbilitiesIndex abilityIndex) const;
105
106 MCNAPI bool $isWorldBuilder() const;
107
108 MCNAPI ::CompoundTag $serialize() const;
109
110 MCNAPI bool $isValid() const;
111
112
113 // NOLINTEND
114
115public:
116 // vftables
117 // NOLINTBEGIN
118 MCNAPI static void** $vftable();
119 // NOLINTEND
120};
Definition Actor.h:116
Definition BlockPos.h:14
Definition CompoundTag.h:18
Definition Dimension.h:86
Definition Level.h:255
Definition PrecompiledCommandOrigin.h:22
MCAPI ::std::optional<::Vec2 > $getRotation() const
MCAPI bool $isValid() const
MCAPI::BlockPos $getBlockPosition() const
MCAPI::Dimension * $getDimension() const
MCAPI::Level * $getLevel() const
MCAPI::std::string const & $getRequestId() const
static MCAPI void ** $vftable()
MCAPI::std::string $getName() const
MCAPI ::std::unique_ptr<::CommandOrigin > $clone() const
MCAPI bool $canUseCommandsWithoutCheatsEnabled() const
MCAPI::Actor * $getEntity() const
MCAPI::CommandOriginType $getOriginType() const
MCAPI::CompoundTag $serialize() const
MCAPI bool $hasTellPerms() const
MCAPI bool $canUseAbility(::AbilitiesIndex abilityIndex) const
MCAPI bool $hasChatPerms() const
MCAPI bool $hasMessagePerms() const
MCAPI bool $isSelectorExpansionAllowed() const
MCAPI::Vec3 $getWorldPosition() const
MCAPI::CommandPermissionLevel $getPermissionsLevel() const
MCAPI bool $isWorldBuilder() const
Definition Vec2.h:5
Definition Vec3.h:10