LeviLamina
Loading...
Searching...
No Matches
KickCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/ServerCommand.h"
7
8// auto generated forward declare list
9// clang-format off
10class CommandOrigin;
11class CommandOutput;
12class CommandRegistry;
13class Level;
14class Minecraft;
15class Player;
16// clang-format on
17
19public:
20 // member variables
21 // NOLINTBEGIN
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 KickCommand& operator=(KickCommand const&);
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 2
36 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
37
38 // vIndex: 0
39 virtual ~KickCommand() /*override*/ = default;
40 // NOLINTEND
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCAPI bool
46 _canKickPlayerOrGenerateFailureOutput(::Player const& player, ::CommandOutput& output, ::Level* level) const;
47
48 MCAPI ::Player const* _findTarget(
49 ::CommandOrigin const& origin,
50 ::CommandOutput& output,
51 ::Level& level,
52 ::std::string const& message,
53 ::std::string const& reason,
54 ::std::string const& idOrName
55 ) const;
56
57 MCAPI void _generateSuccessOutput(
58 ::CommandOutput& output,
59 ::std::string const& playerNameTag,
60 ::std::string const& reason
61 ) const;
62
63 MCAPI ::Player const* _loopPlayers(
64 ::CommandOrigin const&,
66 ::Level& level,
67 ::std::string const&,
68 ::std::string const&,
69 ::std::function<bool(::Player const*)> condition
70 ) const;
71
72 MCAPI void _refreshJoinCode(::Level& level) const;
73 // NOLINTEND
74
75public:
76 // static functions
77 // NOLINTBEGIN
78 MCAPI static void _kickPlayer(
79 ::Minecraft* game,
80 ::Player const& matchingPlayer,
81 ::std::string const& message,
82 ::std::optional<::std::string> filteredMessage
83 );
84
85 MCAPI static void setup(::CommandRegistry& registry);
86 // NOLINTEND
87
88public:
89 // virtual function thunks
90 // NOLINTBEGIN
91 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCNAPI static void** $vftable();
98 // NOLINTEND
99};
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:45
Definition KickCommand.h:18
static MCAPI void ** $vftable()
Definition Level.h:238
Definition Minecraft.h:55
Definition Player.h:119
Definition ServerCommand.h:22
Definition Alias.h:14