LeviLamina
Loading...
Searching...
No Matches
LevelContainerModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/pub_sub/Subscription.h"
7#include "mc/legacy/ActorUniqueID.h"
8#include "mc/world/containers/ContainerEnumName.h"
9#include "mc/world/containers/models/ContainerCategory.h"
10#include "mc/world/containers/models/ContainerModel.h"
11#include "mc/world/level/BlockPos.h"
12#include "mc/world/level/block/actor/BlockActorType.h"
13
14// auto generated forward declare list
15// clang-format off
16class Container;
18class ItemStack;
19class Player;
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 8, ::Player&> mPlayer;
27 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
28 ::ll::TypedStorage<4, 4, ::BlockActorType> mBlockEntityType;
29 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mEntityUniqueId;
30 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mContainerRemovedSubscription;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
38
39public:
40 // virtual functions
41 // NOLINTBEGIN
42 // vIndex: 1
43 virtual ~LevelContainerModel() /*override*/ = default;
44
45 // vIndex: 3
46 virtual void releaseResources() /*override*/;
47
48 // vIndex: 0
49 virtual void containerContentChanged(int slot) /*override*/;
50
51 // vIndex: 14
52 virtual bool isValid() /*override*/;
53
54 // vIndex: 7
55 virtual ::ContainerWeakRef getContainerWeakRef() const /*override*/;
56
57 // vIndex: 2
58 virtual void postInit() /*override*/;
59
60 // vIndex: 20
61 virtual bool isSlotDisabled(int slot) const /*override*/;
62
63 // vIndex: 22
64 virtual int _getContainerOffset() const /*override*/;
65
66 // vIndex: 24
67 virtual void _onItemChanged(int modelSlot, ::ItemStack const& oldItem, ::ItemStack const& newItem) /*override*/;
68
69 // vIndex: 21
70 virtual ::Container* _getContainer() const /*override*/;
71 // NOLINTEND
72
73public:
74 // member functions
75 // NOLINTBEGIN
77 ::ContainerEnumName containerName,
78 int containerSize,
79 ::Player& player,
80 ::ActorUniqueID entityId,
81 ::ContainerCategory category
82 );
83
85 ::ContainerEnumName containerName,
86 int containerSize,
87 ::Player& player,
88 ::BlockActorType type,
89 ::BlockPos const& blockPos,
90 ::ContainerCategory category
91 );
92
93 MCAPI void _refreshSlot(int modelSlot);
94
95 MCAPI void containerRemoved();
96 // NOLINTEND
97
98public:
99 // constructor thunks
100 // NOLINTBEGIN
101 MCAPI void* $ctor(
102 ::ContainerEnumName containerName,
103 int containerSize,
104 ::Player& player,
105 ::ActorUniqueID entityId,
106 ::ContainerCategory category
107 );
108
109 MCAPI void* $ctor(
110 ::ContainerEnumName containerName,
111 int containerSize,
112 ::Player& player,
113 ::BlockActorType type,
114 ::BlockPos const& blockPos,
115 ::ContainerCategory category
116 );
117 // NOLINTEND
118
119public:
120 // virtual function thunks
121 // NOLINTBEGIN
122 MCAPI void $releaseResources();
123
124 MCAPI void $containerContentChanged(int slot);
125
126 MCAPI bool $isValid();
127
128 MCAPI ::ContainerWeakRef $getContainerWeakRef() const;
129
130 MCAPI void $postInit();
131
132 MCAPI bool $isSlotDisabled(int slot) const;
133
134 MCAPI int $_getContainerOffset() const;
135
136 MCFOLD void $_onItemChanged(int modelSlot, ::ItemStack const& oldItem, ::ItemStack const& newItem);
137
138 MCAPI ::Container* $_getContainer() const;
139 // NOLINTEND
140
141public:
142 // vftables
143 // NOLINTBEGIN
144 MCAPI static void** $vftable();
145 // NOLINTEND
146};
Definition BlockPos.h:18
Definition ContainerModel.h:25
Definition ContainerWeakRef.h:17
Definition Container.h:30
Definition ItemStack.h:25
Definition LevelContainerModel.h:22
Definition Player.h:119
Definition ActorUniqueID.h:5