LeviLamina
Loading...
Searching...
No Matches
AnvilContainerManagerModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/ContainerID.h"
7#include "mc/world/containers/managers/models/ContainerManagerModel.h"
8#include "mc/world/level/BlockPos.h"
9
10// auto generated forward declare list
11// clang-format off
13class ItemInstance;
14class ItemStack;
15class Player;
16// clang-format on
17
18class AnvilContainerManagerModel : public ::ContainerManagerModel {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 AnvilContainerManagerModel();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ~AnvilContainerManagerModel() /*override*/ = default;
33
34 virtual ::std::vector<::ItemStack> getItemCopies() const /*override*/;
35
36 virtual void setSlot(int slot, ::ItemStack const& item, bool fromNetwork) /*override*/;
37
38 virtual ::ItemStack const& getSlot(int slot) const /*override*/;
39
40 virtual void setData(int, int) /*override*/;
41
42 virtual bool isValid(float pickRange) /*override*/;
43
44 virtual void broadcastChanges() /*override*/;
45
46 virtual ::ContainerScreenContext _postInit() /*override*/;
47 // NOLINTEND
48
49public:
50 // member functions
51 // NOLINTBEGIN
52 MCAPI AnvilContainerManagerModel(::ContainerID containerId, ::Player& player, ::BlockPos const& blockPos);
53
54#ifdef LL_PLAT_C
55 MCAPI void applyDamageToAnvilBlock();
56
57 MCAPI void fireItemAcquiredEvent(::ItemInstance const& instance, int count);
58
59 MCAPI void fireItemCraftedEvent(::ItemInstance const& item);
60
61 MCAPI void fireItemEnchantedEvent(::ItemInstance const& item);
62
63 MCFOLD ::BlockPos const& getBlockPos() const;
64#endif
65 // NOLINTEND
66
67public:
68 // static variables
69 // NOLINTBEGIN
70 MCAPI static int const& RESULT_SLOT();
71 // NOLINTEND
72
73public:
74 // constructor thunks
75 // NOLINTBEGIN
76 MCAPI void* $ctor(::ContainerID containerId, ::Player& player, ::BlockPos const& blockPos);
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCAPI ::std::vector<::ItemStack> $getItemCopies() const;
83
84 MCAPI void $setSlot(int slot, ::ItemStack const& item, bool fromNetwork);
85
86 MCAPI ::ItemStack const& $getSlot(int slot) const;
87
88 MCFOLD void $setData(int, int);
89
90 MCAPI bool $isValid(float pickRange);
91
92 MCFOLD void $broadcastChanges();
93
94 MCAPI ::ContainerScreenContext $_postInit();
95
96
97 // NOLINTEND
98
99public:
100 // vftables
101 // NOLINTBEGIN
102 MCAPI static void** $vftable();
103 // NOLINTEND
104};
Definition BlockPos.h:21
Definition ContainerScreenContext.h:19
Definition ItemInstance.h:15
Definition ItemStack.h:35
Definition Player.h:137