LeviLamina
Loading...
Searching...
No Matches
CraftHandlerCrafting.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/inventory/network/ItemStackNetResult.h"
7#include "mc/world/inventory/network/ItemStackRequestActionType.h"
8#include "mc/world/inventory/network/TypedServerNetId.h"
9#include "mc/world/inventory/network/crafting/CraftHandlerBase.h"
10
11// auto generated forward declare list
12// clang-format off
13class ItemStack;
15class Player;
16class Recipes;
18struct RecipeNetIdTag;
19// clang-format on
20
21class CraftHandlerCrafting : public ::CraftHandlerBase {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<1, 1, bool> mWorkbench;
26 ::ll::TypedStorage<8, 8, ::Player&> mPlayer;
27 ::ll::TypedStorage<4, 4, ::RecipeNetId> mRecipeNetId;
28 ::ll::TypedStorage<1, 1, uchar> mDeferredCraftCount;
29 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mConsumedItems;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 CraftHandlerCrafting& operator=(CraftHandlerCrafting const&);
35 CraftHandlerCrafting(CraftHandlerCrafting const&);
36 CraftHandlerCrafting();
37
38public:
39 // virtual functions
40 // NOLINTBEGIN
41 virtual ~CraftHandlerCrafting() /*override*/ = default;
42
43 virtual ::ItemStackNetResult handleConsumedItem(
44 ::FullContainerName const& openContainerNetId,
45 uchar const slot,
46 ::ItemStack const& consumedItem
47 ) /*override*/;
48
49 virtual ::ItemStackNetResult preHandleAction(::ItemStackRequestActionType requestActionType) /*override*/;
50
51 virtual ::ItemStackNetResult
52 _handleCraftAction(::ItemStackRequestActionCraftBase const& requestAction) /*override*/;
53
54 virtual ::Recipes const* _getLevelRecipes() const /*override*/;
55 // NOLINTEND
56
57public:
58 // virtual function thunks
59 // NOLINTBEGIN
60 MCAPI ::ItemStackNetResult $handleConsumedItem(
61 ::FullContainerName const& openContainerNetId,
62 uchar const slot,
63 ::ItemStack const& consumedItem
64 );
65
66 MCAPI ::ItemStackNetResult $preHandleAction(::ItemStackRequestActionType requestActionType);
67
68 MCAPI ::ItemStackNetResult $_handleCraftAction(::ItemStackRequestActionCraftBase const& requestAction);
69
70 MCAPI ::Recipes const* $_getLevelRecipes() const;
71
72
73 // NOLINTEND
74
75public:
76 // vftables
77 // NOLINTBEGIN
78 MCNAPI static void** $vftable();
79 // NOLINTEND
80};
static MCAPI void ** $vftable()
Definition ItemStackRequestActionCraftBase.h:16
Definition ItemStack.h:26
Definition Player.h:129
Definition Recipes.h:37
Definition FullContainerName.h:8
Definition RecipeNetIdTag.h:5