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