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/CommandSelector.h"
8#include "mc/server/commands/CommandSelectorResults.h"
9
10// auto generated forward declare list
11// clang-format off
12class CommandOrigin;
13class CommandOutput;
14class CommandRegistry;
15class Player;
16class Recipes;
17// clang-format on
18
20public:
21 // UnlockRecipeCommand inner types define
22 enum class RecipeAction : int {
23 Give = 0,
24 Take = 1,
25 };
26
27public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<4, 4, ::UnlockRecipeCommand::RecipeAction> mAction;
31 ::ll::TypedStorage<8, 200, ::CommandSelector<::Player>> mPlayers;
32 ::ll::TypedStorage<8, 32, ::std::string> mRecipe;
33 // NOLINTEND
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
39
40 virtual ~UnlockRecipeCommand() /*override*/ = default;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI void _handleAllRecipes(::CommandOutput& output, ::CommandSelectorResults<::Player> const& players) const;
47
48 MCAPI void _handleSpecificRecipe(
49 ::CommandOutput& output,
51 ::Recipes const& recipes
52 ) const;
53 // NOLINTEND
54
55public:
56 // static functions
57 // NOLINTBEGIN
58 MCAPI static void setup(::CommandRegistry& registry);
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
65
66
67 // NOLINTEND
68
69public:
70 // vftables
71 // NOLINTBEGIN
72 MCNAPI static void** $vftable();
73 // NOLINTEND
74};
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:50
Definition CommandSelectorResults.h:6
Definition Command.h:17
Definition Player.h:129
Definition Recipes.h:36
Definition UnlockRecipeCommand.h:19
static MCAPI void ** $vftable()