LeviLamina
Loading...
Searching...
No Matches
FilteredContainerModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/containers/models/ExpandoContainerModel.h"
7#include "mc/world/containers/models/FilterResult.h"
8
9// auto generated forward declare list
10// clang-format off
11class ItemInstance;
12class ItemStackBase;
13// clang-format on
14
16public:
17 // FilteredContainerModel inner types define
18 using FilterFunction = ::std::function<::FilterResult(::ItemInstance const&, bool)>;
19
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<1, 1, bool> mDoExpandoGroups;
24 ::ll::TypedStorage<1, 1, bool> mIsFiltering;
25 ::ll::TypedStorage<4, 4, int> mFilteredItemCount;
26 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::ItemInstance, uint>>> mSavedItems;
27 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::ItemInstance, uint>>> mActiveFilteredExpandableSetHeads;
28 ::ll::TypedStorage<8, 64, ::std::function<::FilterResult(::ItemInstance const&, bool)>> mFilterRule;
29 // NOLINTEND
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 1
35 virtual ~FilteredContainerModel() /*override*/ = default;
36
37 // vIndex: 0
38 virtual void containerContentChanged(int) /*override*/;
39
40 // vIndex: 10
41 virtual ::ItemInstance const& getItemInstance(int modelSlot) const /*override*/;
42
43 // vIndex: 25
44 virtual void setItemInstance(int, ::ItemInstance const&) /*override*/;
45
46 // vIndex: 26
47 virtual void refreshContainer(bool) /*override*/;
48
49 // vIndex: 4
50 virtual int getContainerSize() const /*override*/;
51
52 // vIndex: 5
53 virtual int getFilteredContainerSize() const /*override*/;
54
55 // vIndex: 16
56 virtual bool isExpanableItemFiltered(int index) const /*override*/;
57
58 // vIndex: 27
59 virtual int getIndexForCreativeItem(::ItemStackBase const&) const /*override*/;
60
61 // vIndex: 23
62 virtual void _init() /*override*/;
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68
69 // NOLINTEND
70};
Definition ExpandoContainerModel.h:19
Definition FilteredContainerModel.h:15
Definition ItemInstance.h:16
Definition ItemStackBase.h:35