LeviLamina
Loading...
Searching...
No Matches
CraftHandlerTrade.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/TypedServerNetId.h"
8#include "mc/world/inventory/network/crafting/CraftHandlerBase.h"
9#include "mc/world/inventory/network/crafting/ItemStackRequestActionCraft.h"
10
11// auto generated forward declare list
12// clang-format off
14class ItemStack;
16class MerchantRecipe;
18struct RecipeNetIdTag;
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 8, ::ContainerScreenContext const&> mScreenContext;
26 ::ll::TypedStorage<1, 1, bool> mIsTrade2;
27 ::ll::TypedStorage<8, 16, ::std::optional<uint64>> mTradeIndex;
28 ::ll::TypedStorage<4, 4, int> mNumCrafts;
29 // NOLINTEND
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 0
35 virtual ~CraftHandlerTrade() /*override*/ = default;
36
37 // vIndex: 4
38 virtual ::ItemStackNetResult _handleCraftAction(::ItemStackRequestActionCraftBase const& requestAction
39 ) /*override*/;
40
41 // vIndex: 1
42 virtual ::ItemStackNetResult handleConsumedItem(
43 ::FullContainerName const& openContainerNetId,
44 uchar const slot,
45 ::ItemStack const& consumedItem
46 ) /*override*/;
47
48 // vIndex: 5
49 virtual void _postCraftRequest(bool const wasSuccess) /*override*/;
50 // NOLINTEND
51
52public:
53 // member functions
54 // NOLINTBEGIN
55 MCAPI ::std::tuple<::ItemStackNetResult, ::MerchantRecipe const*>
56 _getMerchantRecipeFromNetId(::RecipeNetId const& tradeRecipeNetId);
57
58 MCAPI ::ItemStackNetResult _handleTrade1(::ItemStackRequestActionCraft<::RecipeNetId, 12> const& requestAction);
59
60 MCAPI ::ItemStackNetResult _initResultItem(::RecipeNetId const& tradeRecipeNetId, uchar numCrafts);
61
62 MCAPI ::ItemStackNetResult _initTrade2Consumes();
63 // NOLINTEND
64
65public:
66 // destructor thunk
67 // NOLINTBEGIN
68
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74 MCAPI ::ItemStackNetResult $_handleCraftAction(::ItemStackRequestActionCraftBase const& requestAction);
75
76 MCAPI ::ItemStackNetResult $handleConsumedItem(
77 ::FullContainerName const& openContainerNetId,
78 uchar const slot,
79 ::ItemStack const& consumedItem
80 );
81
82 MCAPI void $_postCraftRequest(bool const wasSuccess);
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCAPI static void** $vftable();
89 // NOLINTEND
90};
Definition ContainerScreenContext.h:11
Definition CraftHandlerBase.h:20
Definition CraftHandlerTrade.h:21
Definition ItemStackRequestActionCraftBase.h:16
Definition ItemStackRequestActionCraft.h:6
Definition ItemStack.h:25
Definition MerchantRecipe.h:20
Definition TypedServerNetId.h:6
Definition FullContainerName.h:8
Definition RecipeNetIdTag.h:5