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