LeviLamina
Loading...
Searching...
No Matches
UnlockRecipeCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/Command.h"
7#include "mc/server/commands/CommandSelectorResults.h"
8
9// auto generated forward declare list
10// clang-format off
11class CommandOrigin;
12class CommandOutput;
13class CommandRegistry;
14class Player;
15class Recipes;
16// clang-format on
17
18class UnlockRecipeCommand : public ::Command {
19public:
20 // UnlockRecipeCommand inner types define
21 enum class RecipeAction : int {
22 Give = 0,
23 Take = 1,
24 };
25
26public:
27 // member variables
28 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
36 UnlockRecipeCommand& operator=(UnlockRecipeCommand const&);
37 UnlockRecipeCommand(UnlockRecipeCommand const&);
38 UnlockRecipeCommand();
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
44
45 virtual ~UnlockRecipeCommand() /*override*/ = default;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI void _handleAllRecipes(::CommandOutput& output, ::CommandSelectorResults<::Player> const& players) const;
52
53 MCAPI void _handleSpecificRecipe(
54 ::CommandOutput& output,
56 ::Recipes const& recipes
57 ) const;
58 // NOLINTEND
59
60public:
61 // static functions
62 // NOLINTBEGIN
63 MCAPI static void setup(::CommandRegistry& registry);
64 // NOLINTEND
65
66public:
67 // virtual function thunks
68 // NOLINTBEGIN
69 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
70
71
72 // NOLINTEND
73
74public:
75 // vftables
76 // NOLINTBEGIN
77 MCNAPI static void** $vftable();
78 // NOLINTEND
79};
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandRegistry.h:47
Definition CommandSelectorResults.h:6
Definition Command.h:17
Definition Player.h:125
Definition Recipes.h:35
static MCAPI void ** $vftable()
Definition Alias.h:14