LeviLamina
Loading...
Searching...
No Matches
StonecutterContainerManagerModel.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/inventory/network/TypedServerNetId.h"
9#include "mc/world/level/BlockPos.h"
10
11// auto generated forward declare list
12// clang-format off
14class ItemInstance;
15class ItemStack;
16class Player;
17struct RecipeNetIdTag;
18// clang-format on
19
20class StonecutterContainerManagerModel : public ::ContainerManagerModel {
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 StonecutterContainerManagerModel();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual ~StonecutterContainerManagerModel() /*override*/ = default;
35
36 virtual ::std::vector<::ItemStack> getItemCopies() const /*override*/;
37
38 virtual void setSlot(int slot, ::ItemStack const& item, bool fromNetwork) /*override*/;
39
40 virtual ::ItemStack const& getSlot(int slot) const /*override*/;
41
42 virtual void setData(int, int) /*override*/;
43
44 virtual void broadcastChanges() /*override*/;
45
46 virtual bool isValid(float pickRange) /*override*/;
47
48 virtual ::ContainerScreenContext _postInit() /*override*/;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI StonecutterContainerManagerModel(::ContainerID containerId, ::Player& player, ::BlockPos const& blockPos);
55
56 MCFOLD_C void fireItemAcquiredEvent(::ItemInstance const& item, int count);
57
58 MCAPI_C ::std::vector<::std::pair<::ItemInstance, ::RecipeNetId>> getResultForItem(::ItemStack const& item);
59 // NOLINTEND
60
61public:
62 // constructor thunks
63 // NOLINTBEGIN
64 MCAPI void* $ctor(::ContainerID containerId, ::Player& player, ::BlockPos const& blockPos);
65 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70 MCAPI ::std::vector<::ItemStack> $getItemCopies() const;
71
72 MCAPI void $setSlot(int slot, ::ItemStack const& item, bool fromNetwork);
73
74 MCAPI ::ItemStack const& $getSlot(int slot) const;
75
76 MCFOLD void $setData(int, int);
77
78 MCFOLD void $broadcastChanges();
79
80 MCAPI bool $isValid(float pickRange);
81
82 MCAPI ::ContainerScreenContext $_postInit();
83
84
85 // NOLINTEND
86
87public:
88 // vftables
89 // NOLINTBEGIN
90 MCAPI static void** $vftable();
91 // NOLINTEND
92};
Definition BlockPos.h:19
Definition ContainerScreenContext.h:17
static MCAPI void ** $vftable()
Definition ItemInstance.h:15
Definition ItemStack.h:26
Definition Player.h:125
Definition RecipeNetIdTag.h:5