Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
TellCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/CommandMessage.h"
7#include "mc/server/commands/CommandSelector.h"
8#include "mc/server/commands/standard/MessagingCommand.h"
9
10// auto generated forward declare list
11// clang-format off
12class CommandOrigin;
13class CommandOutput;
14class CommandRegistry;
15class EntityContext;
16class Level;
17class Player;
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 200, ::CommandSelector<::Player>> mTargets;
26 ::ll::TypedStorage<8, 32, ::CommandMessage> mMessage;
27 // NOLINTEND
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
33 // NOLINTEND
34
35public:
36 // static functions
37 // NOLINTBEGIN
38 MCNAPI static bool _sendEvent(
39 ::Level& level,
40 ::std::string const& sender,
41 ::std::vector<::EntityContext> const& targets,
42 ::std::string const& message,
43 ::std::optional<::std::string> const& filteredMessage
44 );
45
46 MCNAPI static void _sendMessageToPlayer(
47 ::Player& player,
48 ::std::string const& message,
49 ::std::optional<::std::string> const filteredMessage,
50 ::std::string const& sender,
51 ::CommandOriginIdentity const& identity,
52 ::Level& level
53 );
54
55 MCAPI static void setup(::CommandRegistry& registry);
56 // NOLINTEND
57
58public:
59 // virtual function thunks
60 // NOLINTBEGIN
61 MCNAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
62
63
64 // NOLINTEND
65};
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition EntityContext.h:15
Definition Level.h:255
Definition MessagingCommand.h:17
Definition Player.h:131
Definition TellCommand.h:21
static MCAPI void _sendMessageToPlayer(::Player &player, ::std::string const &message, ::std::optional<::std::string > const filteredMessage, ::std::string const &sender, ::CommandOriginIdentity const &identity, ::Level &level)
MCAPI void $execute(::CommandOrigin const &origin, ::CommandOutput &output) const
static MCAPI bool _sendEvent(::Level &level, ::std::string const &sender, ::std::vector<::EntityContext > const &targets, ::std::string const &message, ::std::optional<::std::string > const &filteredMessage)
Definition CommandOriginIdentity.h:5