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
19class UnlockRecipeCommand : public ::Command {
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 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI void _handleAllRecipes(::CommandOutput& output, ::CommandSelectorResults<::Player> const& players) const;
45
46 MCAPI void _handleSpecificRecipe(
47 ::CommandOutput& output,
49 ::Recipes const& recipes
50 ) const;
51 // NOLINTEND
52
53public:
54 // static functions
55 // NOLINTBEGIN
56 MCAPI static void setup(::CommandRegistry& registry);
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
63
64
65 // NOLINTEND
66
67public:
68 // vftables
69 // NOLINTBEGIN
70 MCNAPI static void** $vftable();
71 // NOLINTEND
72};
73
74// clang-format off
75template <>
76MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::UnlockRecipeCommand::RecipeAction>();
77// clang-format on
Definition CommandOrigin.h:32
Definition CommandOutput.h:20
Definition CommandRegistry.h:51
Definition CommandSelectorResults.h:6
Definition Player.h:137
Definition Recipes.h:36
Definition UnlockRecipeCommand.h:19
static MCAPI void ** $vftable()