Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
SmithingTableContainerManagerModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/containers/managers/models/ContainerManagerModel.h"
7#include "mc/world/inventory/network/TypedServerNetId.h"
8#include "mc/world/level/BlockPos.h"
9
10// auto generated forward declare list
11// clang-format off
13class ItemInstance;
14class ItemStack;
15struct RecipeNetIdTag;
16// clang-format on
17
18class SmithingTableContainerManagerModel : public ::ContainerManagerModel {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
23 // NOLINTEND
24
25public:
26 // virtual functions
27 // NOLINTBEGIN
28 virtual ~SmithingTableContainerManagerModel() /*override*/ = default;
29
30 virtual ::std::vector<::ItemStack> getItemCopies() const /*override*/;
31
32 virtual void setSlot(int slot, ::ItemStack const& item, bool fromNetwork) /*override*/;
33
34 virtual ::ItemStack const& getSlot(int slot) const /*override*/;
35
36 virtual void setData(int, int) /*override*/;
37
38 virtual bool isValid(float pickRange) /*override*/;
39
40 virtual void broadcastChanges() /*override*/;
41
42 virtual ::ContainerScreenContext _postInit() /*override*/;
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48#ifdef LL_PLAT_C
49 MCNAPI void fireItemAcquiredEvent(::ItemInstance const& instance, int count);
50
51 MCNAPI ::std::pair<::ItemInstance, ::RecipeNetId> getResultForItems(
52 ::ItemStack const& templateStack,
53 ::ItemStack const& inputStack,
54 ::ItemStack const& materialStack
55 );
56#endif
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCNAPI ::std::vector<::ItemStack> $getItemCopies() const;
63
64 MCNAPI void $setSlot(int slot, ::ItemStack const& item, bool fromNetwork);
65
66 MCNAPI ::ItemStack const& $getSlot(int slot) const;
67
68 MCNAPI void $setData(int, int);
69
70 MCNAPI bool $isValid(float pickRange);
71
72 MCNAPI void $broadcastChanges();
73
74 MCNAPI ::ContainerScreenContext $_postInit();
75
76
77 // NOLINTEND
78
79public:
80 // vftables
81 // NOLINTBEGIN
82 MCNAPI static void** $vftable();
83 // NOLINTEND
84};
Definition ContainerScreenContext.h:16
Definition ItemInstance.h:15
Definition ItemStack.h:26
Definition SmithingTableContainerManagerModel.h:18
MCAPI bool $isValid(float pickRange)
MCAPI void $setSlot(int slot, ::ItemStack const &item, bool fromNetwork)
static MCAPI void ** $vftable()
MCAPI::ItemStack const & $getSlot(int slot) const
MCAPI::ContainerScreenContext $_postInit()
MCAPI ::std::vector<::ItemStack > $getItemCopies() const
Definition RecipeNetIdTag.h:5