LeviLamina
Loading...
Searching...
No Matches
ExpandoContainerModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/world/containers/models/ContainerExpandStatus.h"
8#include "mc/world/containers/models/ContainerModel.h"
9
10// auto generated forward declare list
11// clang-format off
13class ItemInstance;
14class ItemStack;
15class ItemStackBase;
17// clang-format on
18
20public:
21 // ExpandoContainerModel inner types define
22 using OnItemExpandedCallback = ::std::function<void(::std::string const&, int, int)>;
23
24public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::ItemInstance, uint>>> mItems;
28 ::ll::TypedStorage<8, 24, ::std::vector<::ExpandoModelElement>> mCurrentItems;
29 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::CreativeItemRegistry>> mCreativeItemRegistry;
30 ::ll::TypedStorage<8, 24, ::std::vector<::ExpandoModelElement>> mExpandedItems;
31 ::ll::TypedStorage<8, 64, ::std::function<void(::std::string const&, int, int)>> mOnItemExpanded;
32 // NOLINTEND
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 // vIndex: 1
38 virtual ~ExpandoContainerModel() /*override*/ = default;
39
40 // vIndex: 0
41 virtual void containerContentChanged(int) /*override*/;
42
43 // vIndex: 10
44 virtual ::ItemInstance const& getItemInstance(int modelSlot) const /*override*/;
45
46 // vIndex: 25
47 virtual void setItemInstance(int, ::ItemInstance const&);
48
49 // vIndex: 12
50 virtual bool isItemInstanceBased() const /*override*/;
51
52 // vIndex: 13
53 virtual void setItem(int modelSlot, ::ItemStack const& item) /*override*/;
54
55 // vIndex: 8
56 virtual ::ItemStack const& getItemStack(int modelSlot) const /*override*/;
57
58 // vIndex: 9
59 virtual ::std::vector<::ItemStack> const& getItems() const /*override*/;
60
61 // vIndex: 11
62 virtual ::ItemStackBase const& getItemStackBase(int modelSlot) const /*override*/;
63
64 // vIndex: 4
65 virtual int getContainerSize() const /*override*/;
66
67 // vIndex: 5
68 virtual int getFilteredContainerSize() const /*override*/;
69
70 // vIndex: 17
71 virtual ::ContainerExpandStatus getItemExpandStatus(int itemId) const /*override*/;
72
73 // vIndex: 18
74 virtual ::std::string const& getItemGroupName(int itemId) const /*override*/;
75
76 // vIndex: 19
77 virtual void switchItemExpando(int itemId) /*override*/;
78
79 // vIndex: 26
80 virtual void refreshContainer(bool);
81
82 // vIndex: 27
83 virtual int getIndexForCreativeItem(::ItemStackBase const&) const;
84
85 // vIndex: 23
86 virtual void _init() /*override*/;
87 // NOLINTEND
88
89public:
90 // virtual function thunks
91 // NOLINTBEGIN
92
93 // NOLINTEND
94};
Definition ContainerModel.h:25
Definition CreativeItemRegistry.h:20
Definition ExpandoContainerModel.h:19
Definition ItemInstance.h:16
Definition ItemStackBase.h:35
Definition ItemStack.h:25
Definition ExpandoModelElement.h:5