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