LeviLamina
Loading...
Searching...
No Matches
CraftHandlerBase.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
10// auto generated forward declare list
11// clang-format off
12class ItemStack;
15class Recipe;
16class Recipes;
21struct RecipeNetIdTag;
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 8, ::ItemStackRequestActionCraftHandler&> mCraftRequestHandler;
29 ::ll::TypedStorage<1, 1, ::ItemStackRequestActionType> mCraftActionType;
30 ::ll::TypedStorage<1, 1, bool> mNonImplementedTrustClientResults;
31 ::ll::TypedStorage<8, 24, ::std::vector<::ExpectedSlotConsume>> mExpectedSlotConsumes;
32 ::ll::TypedStorage<8, 24, ::std::vector<::ExpectedAnywhereConsume>> mExpectedAnywhereConsumes;
33 ::ll::TypedStorage<8, 24, ::std::vector<::AllowedAnywhereConsume>> mAllowedAnywhereConsumes;
34 ::ll::TypedStorage<1, 1, bool> mIsCraftRequest;
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 CraftHandlerBase& operator=(CraftHandlerBase const&);
42
43public:
44 // virtual functions
45 // NOLINTBEGIN
46 // vIndex: 0
47 virtual ~CraftHandlerBase() = default;
48
49 // vIndex: 1
50 virtual ::ItemStackNetResult handleConsumedItem(::FullContainerName const&, uchar const, ::ItemStack const&);
51
52 // vIndex: 2
53 virtual ::ItemStackNetResult preHandleAction(::ItemStackRequestActionType);
54
55 // vIndex: 3
56 virtual void endRequestBatch();
57
58 // vIndex: 4
59 virtual ::ItemStackNetResult _handleCraftAction(::ItemStackRequestActionCraftBase const&) = 0;
60
61 // vIndex: 5
62 virtual void _postCraftRequest(bool const wasSuccess);
63
64 // vIndex: 6
65 virtual ::Recipes const* _getLevelRecipes() const;
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
71 MCAPI ::std::tuple<::ItemStackNetResult, ::Recipe const*> _getRecipeFromNetId(::RecipeNetId const& recipeNetId);
72
73 MCAPI ::ItemStackNetResult
74 handleCraftAction(::ItemStackRequestActionCraftBase const& requestAction, ::ItemStackNetResult currentResult);
75
76 MCAPI void postRequest(bool wasSuccess);
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCFOLD void $endRequestBatch();
83
84 MCFOLD void $_postCraftRequest(bool const wasSuccess);
85
86 MCFOLD ::Recipes const* $_getLevelRecipes() const;
87 // NOLINTEND
88
89public:
90 // vftables
91 // NOLINTBEGIN
92 MCNAPI static void** $vftable();
93 // NOLINTEND
94};
Definition CraftHandlerBase.h:24
static MCAPI void ** $vftable()
Definition ItemStackRequestActionCraftBase.h:16
Definition ItemStackRequestActionCraftHandler.h:22
Definition ItemStack.h:25
Definition Recipe.h:29
Definition Recipes.h:35
Definition TypedServerNetId.h:6
Definition AllowedAnywhereConsume.h:5
Definition ExpectedAnywhereConsume.h:5
Definition ExpectedSlotConsume.h:5
Definition FullContainerName.h:8
Definition RecipeNetIdTag.h:5