LeviLamina
Loading...
Searching...
No Matches
SmithingTableContainerManagerController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/containers/SlotData.h"
7#include "mc/world/containers/managers/controllers/ContainerManagerController.h"
8#include "mc/world/containers/managers/controllers/ItemResultPreview.h"
9#include "mc/world/inventory/network/TypedServerNetId.h"
10
11// auto generated forward declare list
12// clang-format off
13class ItemInstance;
14class ItemStackBase;
16struct AutoPlaceItem;
17struct AutoPlaceResult;
21struct RecipeNetIdTag;
22// clang-format on
23
24class SmithingTableContainerManagerController : public ::ContainerManagerController {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::SmithingTableContainerManagerModel>>
29 mSmithingTableContainerManagerModel;
30 ::ll::TypedStorage<8, 40, ::SlotData const> mCreatedItemOutputSlot;
31 ::ll::TypedStorage<8, 136, ::ItemResultPreview> mResultPreview;
32 // NOLINTEND
33
34#ifdef LL_PLAT_S
35#else // LL_PLAT_C
36public:
37 // prevent constructor by default
38 SmithingTableContainerManagerController();
39
40#endif
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 virtual ~SmithingTableContainerManagerController() /*override*/ = default;
45
46 virtual bool isOutputSlot(::std::string const& collectionName) const /*override*/;
47
48 virtual ::ItemStackBase const& getTakeableItemStackBase(::SlotData const& slot) const /*override*/;
49
50 virtual void handleTakeAmount(::SlotData const& dstSlot, int amount, ::SlotData const& srcSlot) /*override*/;
51
52 virtual void handleTakeAll(::SlotData const& dstSlot, ::SlotData const& srcSlot) /*override*/;
53
54 virtual void handleTakeHalf(::SlotData const& dstSlot, ::SlotData const& srcSlot) /*override*/;
55
56 virtual int handleAutoPlace(
57 ::SlotData const& srcSlot,
58 int amount,
59 ::std::vector<::AutoPlaceItem> const& autoPlaceOrder,
60 ::std::vector<::AutoPlaceResult>& destinations
61 ) /*override*/;
62
63 virtual void _onItemAcquired(::ItemInstance const& stack, ::SlotData const& srcSlot) /*override*/;
64
65 virtual ::CreateContainerItemScope
66 _makeCreateItemScope(::SlotData const& srcSlot, ::ItemTransferAmount const&) /*override*/;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72#ifdef LL_PLAT_C
73 MCNAPI explicit SmithingTableContainerManagerController(
74 ::std::weak_ptr<::SmithingTableContainerManagerModel> containerManagerModel
75 );
76
77 MCNAPI void _consumeItems();
78
79 MCNAPI void _createCraftItem(::ItemInstance& stack, ::ItemStackRequestScope const& requestScope);
80
81 MCNAPI ::std::pair<::ItemInstance, ::RecipeNetId> _getResult();
82
83 MCNAPI bool _handleTransferCraft(::SlotData const& srcSlot, ::SlotData const& dstSlot);
84
85 MCNAPI void _setupCallbacks();
86#endif
87 // NOLINTEND
88
89public:
90 // constructor thunks
91 // NOLINTBEGIN
92#ifdef LL_PLAT_C
93 MCNAPI void* $ctor(::std::weak_ptr<::SmithingTableContainerManagerModel> containerManagerModel);
94#endif
95 // NOLINTEND
96
97public:
98 // virtual function thunks
99 // NOLINTBEGIN
100#ifdef LL_PLAT_C
101 MCNAPI bool $isOutputSlot(::std::string const& collectionName) const;
102
103 MCNAPI ::ItemStackBase const& $getTakeableItemStackBase(::SlotData const& slot) const;
104
105 MCNAPI void $handleTakeAmount(::SlotData const& dstSlot, int amount, ::SlotData const& srcSlot);
106
107 MCNAPI void $handleTakeAll(::SlotData const& dstSlot, ::SlotData const& srcSlot);
108
109 MCNAPI void $handleTakeHalf(::SlotData const& dstSlot, ::SlotData const& srcSlot);
110
111 MCNAPI int $handleAutoPlace(
112 ::SlotData const& srcSlot,
113 int amount,
114 ::std::vector<::AutoPlaceItem> const& autoPlaceOrder,
115 ::std::vector<::AutoPlaceResult>& destinations
116 );
117
118 MCNAPI void $_onItemAcquired(::ItemInstance const& stack, ::SlotData const& srcSlot);
119
120 MCNAPI ::CreateContainerItemScope $_makeCreateItemScope(::SlotData const& srcSlot, ::ItemTransferAmount const&);
121#endif
122
123
124 // NOLINTEND
125
126public:
127 // vftables
128 // NOLINTBEGIN
129 MCNAPI static void** $vftable();
130 // NOLINTEND
131};
Definition ItemInstance.h:15
Definition ItemStackBase.h:44
Definition SmithingTableContainerManagerModel.h:20
Definition AutoPlaceItem.h:5
Definition AutoPlaceResult.h:5
Definition CreateContainerItemScope.h:18
Definition ItemStackRequestScope.h:14
Definition ItemTransferAmount.h:5
Definition RecipeNetIdTag.h:5
Definition SlotData.h:5