LeviLamina
Loading...
Searching...
No Matches
TitleRawCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/json/Value.h"
7#include "mc/network/packet/SetTitlePacketPayload.h"
8#include "mc/server/commands/CommandSelector.h"
9#include "mc/server/commands/CommandSelectorResults.h"
10#include "mc/server/commands/standard/MessagingCommand.h"
11
12// auto generated forward declare list
13// clang-format off
14class CommandOrigin;
15class CommandOutput;
16class CommandRegistry;
17class Player;
18// clang-format on
19
20class TitleRawCommand : public ::MessagingCommand {
21public:
22 // TitleRawCommand inner types define
23 enum class Mode : int {
24 Clear = 0,
25 Reset = 1,
26 Title = 2,
27 Subtitle = 3,
28 ActionBar = 4,
29 Times = 5,
30 Undefined = 6,
31 };
32
33public:
34 // member variables
35 // NOLINTBEGIN
36 ::ll::TypedStorage<4, 4, ::TitleRawCommand::Mode> mMode;
37 ::ll::TypedStorage<8, 200, ::CommandSelector<::Player>> mTargets;
38 ::ll::TypedStorage<8, 16, ::Json::Value> mMessage;
39 ::ll::TypedStorage<4, 4, int> mFadeIn;
40 ::ll::TypedStorage<4, 4, int> mStay;
41 ::ll::TypedStorage<4, 4, int> mFadeOut;
42 // NOLINTEND
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI bool _sendTitlePacketTextObject(
54 ::SetTitlePacketPayload::TitleType type,
55 ::CommandOrigin const& origin,
56 ::CommandOutput& output,
58 ) const;
59 // NOLINTEND
60
61public:
62 // static functions
63 // NOLINTBEGIN
64 MCAPI static void setup(::CommandRegistry& registry);
65 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
71
72
73 // NOLINTEND
74
75public:
76 // vftables
77 // NOLINTBEGIN
78 MCNAPI static void** $vftable();
79 // NOLINTEND
80};
81
82// clang-format off
83template <>
84MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::TitleRawCommand::Mode>();
85// clang-format on
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition CommandSelectorResults.h:6
Definition Player.h:137
Definition TitleRawCommand.h:20
static MCAPI void ** $vftable()