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;
14class Recipe;
15class Recipes;
17struct RecipeNetIdTag;
18// clang-format on
19
21public:
22 // member variables
23 // NOLINTBEGIN
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 CraftHandlerBase& operator=(CraftHandlerBase const&);
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 // vIndex: 0
43 virtual ~CraftHandlerBase() = default;
44
45 // vIndex: 1
46 virtual ::ItemStackNetResult handleConsumedItem(::FullContainerName const&, uchar const, ::ItemStack const&);
47
48 // vIndex: 2
49 virtual ::ItemStackNetResult preHandleAction(::ItemStackRequestActionType);
50
51 // vIndex: 3
52 virtual void endRequestBatch();
53
54 // vIndex: 4
55 virtual ::ItemStackNetResult _handleCraftAction(::ItemStackRequestActionCraftBase const&) = 0;
56
57 // vIndex: 5
58 virtual void _postCraftRequest(bool const wasSuccess);
59
60 // vIndex: 6
61 virtual ::Recipes const* _getLevelRecipes() const;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI ::std::tuple<::ItemStackNetResult, ::Recipe const*> _getRecipeFromNetId(::RecipeNetId const& recipeNetId);
68
69 MCAPI ::ItemStackNetResult
70 handleCraftAction(::ItemStackRequestActionCraftBase const& requestAction, ::ItemStackNetResult currentResult);
71
72 MCAPI void postRequest(bool wasSuccess);
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCFOLD void $endRequestBatch();
79
80 MCFOLD void $_postCraftRequest(bool const wasSuccess);
81
82 MCFOLD ::Recipes const* $_getLevelRecipes() const;
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCNAPI static void** $vftable();
89 // NOLINTEND
90};
Definition CraftHandlerBase.h:20
static MCAPI void ** $vftable()
Definition ItemStackRequestActionCraftBase.h:16
Definition ItemStack.h:25
Definition Recipe.h:29
Definition Recipes.h:36
Definition TypedServerNetId.h:6
Definition FullContainerName.h:8
Definition RecipeNetIdTag.h:5
Definition Alias.h:14