LeviLamina
Loading...
Searching...
No Matches
StorageItemContainerModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/containers/models/ContainerModel.h"
7
8// auto generated forward declare list
9// clang-format off
10class Container;
12class ItemStack;
16// clang-format on
17
18class StorageItemContainerModel : public ::ContainerModel {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 8, ::StorageItemComponent const*> mStorageItemComponent;
23 ::ll::TypedStorage<8, 8, ::StorageWeightLimitItemComponent const*> mStorageWeightLimitComponent;
24 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::Container>> mContainer;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 StorageItemContainerModel();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual ~StorageItemContainerModel() /*override*/ = default;
35
36 virtual void postInit() /*override*/;
37
38 virtual void containerContentChanged(int slot) /*override*/;
39
40 virtual bool isValid() /*override*/;
41
42 virtual ::ContainerWeakRef getContainerWeakRef() const /*override*/;
43
44 virtual int _getContainerOffset() const /*override*/;
45
46 virtual void _onItemChanged(int modelSlot, ::ItemStack const& oldItem, ::ItemStack const& newItem) /*override*/;
47
48 virtual ::Container* _getContainer() const /*override*/;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI StorageItemContainerModel(
55 ::FullContainerName const& name,
56 ::std::shared_ptr<::Container> container,
57 bool isClientSide,
58 ::StorageItemComponent* storageItemComponent,
59 ::StorageWeightLimitItemComponent* storageWeightLimitItemComponent
60 );
61
62 MCFOLD ::StorageItemComponent const* getStorageItemComponent() const;
63
64 MCAPI ::StorageWeightLimitItemComponent const* getStorageWeightLimitComponent() const;
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCAPI void* $ctor(
71 ::FullContainerName const& name,
72 ::std::shared_ptr<::Container> container,
73 bool isClientSide,
74 ::StorageItemComponent* storageItemComponent,
75 ::StorageWeightLimitItemComponent* storageWeightLimitItemComponent
76 );
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCAPI void $postInit();
83
84 MCAPI void $containerContentChanged(int slot);
85
86 MCFOLD bool $isValid();
87
88 MCAPI ::ContainerWeakRef $getContainerWeakRef() const;
89
90 MCFOLD int $_getContainerOffset() const;
91
92 MCFOLD void $_onItemChanged(int modelSlot, ::ItemStack const& oldItem, ::ItemStack const& newItem);
93
94 MCAPI ::Container* $_getContainer() const;
95
96
97 // NOLINTEND
98
99public:
100 // vftables
101 // NOLINTBEGIN
102 MCAPI static void** $vftable();
103 // NOLINTEND
104};
Definition ContainerWeakRef.h:20
Definition Container.h:34
Definition ItemStack.h:35
Definition StorageItemComponent.h:31
Definition StorageWeightLimitItemComponent.h:17
Definition FullContainerName.h:8