LeviLamina
Loading...
Searching...
No Matches
EffectCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/Command.h"
7#include "mc/server/commands/CommandSelectorResults.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class CommandOrigin;
13class CommandOutput;
14class CommandRegistry;
15class MobEffect;
16struct EffectDuration;
17// clang-format on
18
19class EffectCommand : public ::Command {
20public:
21 // EffectCommand inner types define
22 enum class Mode : int {
23 Add = 0,
24 Clear = 1,
25 AddInfinite = 2,
26 };
27
28public:
29 // member variables
30 // NOLINTBEGIN
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
41 EffectCommand& operator=(EffectCommand const&);
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 // vIndex: 2
49 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
50
51 // vIndex: 0
52 virtual ~EffectCommand() /*override*/ = default;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI void
59 _add(::CommandSelectorResults<::Actor>& targets, ::CommandOutput& output, ::EffectDuration duration) const;
60
61 MCAPI bool _checkIsValidAmplifierRange(::CommandOutput& output) const;
62
63 MCAPI bool _checkIsValidDuration(::CommandOutput& output) const;
64
65 MCAPI void _clearAllEffects(::CommandSelectorResults<::Actor>& targets, ::CommandOutput& output) const;
66
67 MCAPI void _clearEffect(
69 ::CommandOutput& output,
70 ::MobEffect const& effect,
71 bool throwsErrorOnNoEffect
72 ) const;
73 // NOLINTEND
74
75public:
76 // static functions
77 // NOLINTBEGIN
78 MCAPI static void setup(::CommandRegistry& registry);
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
91 // NOLINTEND
92
93public:
94 // vftables
95 // NOLINTBEGIN
96 MCAPI static void** $vftable();
97 // NOLINTEND
98};
Definition Actor.h:104
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:44
Definition CommandSelectorResults.h:6
Definition Command.h:17
Definition EffectCommand.h:19
Definition MobEffect.h:27
Definition EffectDuration.h:5
Definition Alias.h:14