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 MCAPI void _refreshSlot(int modelSlot);
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCAPI void* $ctor(
69 ::FullContainerName const& name,
70 ::std::shared_ptr<::Container> container,
71 bool isClientSide,
72 ::StorageItemComponent* storageItemComponent,
73 ::StorageWeightLimitItemComponent* storageWeightLimitItemComponent
74 );
75 // NOLINTEND
76
77public:
78 // virtual function thunks
79 // NOLINTBEGIN
80 MCAPI void $postInit();
81
82 MCAPI void $containerContentChanged(int slot);
83
84 MCFOLD bool $isValid();
85
86 MCAPI ::ContainerWeakRef $getContainerWeakRef() const;
87
88 MCFOLD int $_getContainerOffset() const;
89
90 MCFOLD void $_onItemChanged(int modelSlot, ::ItemStack const& oldItem, ::ItemStack const& newItem);
91
92 MCAPI ::Container* $_getContainer() const;
93
94
95 // NOLINTEND
96
97public:
98 // vftables
99 // NOLINTBEGIN
100 MCAPI static void** $vftable();
101 // NOLINTEND
102};
Definition ContainerWeakRef.h:20
Definition Container.h:33
Definition ItemStack.h:26
Definition StorageItemComponent.h:29
Definition StorageWeightLimitItemComponent.h:16
Definition FullContainerName.h:8