LeviLamina
Loading...
Searching...
No Matches
PackStackCommand.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;
14struct PackInfo;
15// clang-format on
16
18public:
19 // PackStackCommand inner types define
20 enum class ExcludeVanilla : int {
21 Exclude = 0,
22 Include = 1,
23 };
24
25 enum class StackType : int {
26 Server = 0,
27 Client = 1,
28 Undefined = 2,
29 };
30
31 enum class Verbose : int {
32 Verbose = 0,
33 Normal = 1,
34 };
35
36public:
37 // member variables
38 // NOLINTBEGIN
39 ::ll::TypedStorage<4, 4, ::PackStackCommand::StackType> mStackType;
40 ::ll::TypedStorage<4, 4, ::PackStackCommand::Verbose> mVerbose;
41 ::ll::TypedStorage<4, 4, ::PackStackCommand::ExcludeVanilla> mExcludeVanilla;
42 // NOLINTEND
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
48
49 virtual ~PackStackCommand() /*override*/ = default;
50 // NOLINTEND
51
52public:
53 // static functions
54 // NOLINTBEGIN
55 MCAPI static ::std::string formatPackInfoOutput(::PackInfo const& packInfo, bool isVerbose);
56
57 MCAPI static void
58 outputPackStack(::CommandOutput& output, ::ResourcePackStack const& stack, bool isVerbose, bool excludeVanilla);
59
60 MCAPI static void outputWorldTemplateData(
61 ::CommandOutput& output,
62 ::std::string const& worldTemplateID,
63 ::std::string const& worldTemplateVersion,
64 bool isVerbose
65 );
66
67 MCAPI static void setup(::CommandRegistry& registry);
68 // NOLINTEND
69
70public:
71 // virtual function thunks
72 // NOLINTBEGIN
73 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
74
75
76 // NOLINTEND
77
78public:
79 // vftables
80 // NOLINTBEGIN
81 MCNAPI static void** $vftable();
82 // NOLINTEND
83};
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:50
Definition PackStackCommand.h:17
static MCAPI void ** $vftable()
Definition ResourcePackStack.h:25
Definition ServerCommand.h:22
Definition Exclude.h:6
Definition Include.h:6
Definition PackInfo.h:9