Skip to content
LeviMC
English
AutoLightDark
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/models/ContainerModel.h"
7
8// auto generated forward declare list
9// clang-format off
10class Container;
12class ItemStack;
13class Player;
14// clang-format on
15
16class OffhandContainerModel : public ::ContainerModel {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 8, ::Player&> mPlayer;
21 // NOLINTEND
22
23public:
24 // prevent constructor by default
25 OffhandContainerModel& operator=(OffhandContainerModel const&);
26 OffhandContainerModel(OffhandContainerModel const&);
27 OffhandContainerModel();
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual ~OffhandContainerModel() /*override*/ = default;
33
34 virtual void postInit() /*override*/;
35
36 virtual void releaseResources() /*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 ::Container* _getContainer() const /*override*/;
47
48 virtual void _onItemChanged(int modelSlot, ::ItemStack const& oldItem, ::ItemStack const& newItem) /*override*/;
49 // NOLINTEND
50
51public:
52 // virtual function thunks
53 // NOLINTBEGIN
54#ifdef LL_PLAT_C
55 MCNAPI void $postInit();
56
57 MCNAPI void $releaseResources();
58
59 MCNAPI void $containerContentChanged(int slot);
60
61 MCNAPI bool $isValid();
62
63 MCNAPI ::ContainerWeakRef $getContainerWeakRef() const;
64
65 MCNAPI int $_getContainerOffset() const;
66
67 MCNAPI ::Container* $_getContainer() const;
68
69 MCNAPI void $_onItemChanged(int modelSlot, ::ItemStack const& oldItem, ::ItemStack const& newItem);
70#endif
71
72
73 // NOLINTEND
74};
MCAPI::ContainerWeakRef $getContainerWeakRef() const
MCAPI bool $isValid()
MCAPI::Container * $_getContainer() const
MCAPI void $_onItemChanged(int modelSlot, ::ItemStack const &oldItem, ::ItemStack const &newItem)
Definition ContainerWeakRef.h:17
Definition Container.h:36
Definition ItemStack.h:26
Definition Player.h:131