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