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<1, 1, ::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 // static functions
100 // NOLINTBEGIN
101 MCAPI static ::Container*
102 getContainerHelper(::Player& player, ::BlockActorType blockActorType, ::BlockPos const& blockPos);
103 // NOLINTEND
104
105public:
106 // constructor thunks
107 // NOLINTBEGIN
108 MCAPI void* $ctor(
109 ::ContainerEnumName containerName,
110 int containerSize,
111 ::Player& player,
112 ::ActorUniqueID entityId,
113 ::ContainerCategory category
114 );
115
116 MCAPI void* $ctor(
117 ::ContainerEnumName containerName,
118 int containerSize,
119 ::Player& player,
120 ::BlockActorType type,
121 ::BlockPos const& blockPos,
122 ::ContainerCategory category
123 );
124 // NOLINTEND
125
126public:
127 // virtual function thunks
128 // NOLINTBEGIN
129 MCAPI void $releaseResources();
130
131 MCAPI void $containerContentChanged(int slot);
132
133 MCAPI bool $isValid();
134
135 MCAPI ::ContainerWeakRef $getContainerWeakRef() const;
136
137 MCAPI void $postInit();
138
139 MCAPI bool $isSlotDisabled(int slot) const;
140
141 MCAPI int $_getContainerOffset() const;
142
143 MCFOLD void $_onItemChanged(int modelSlot, ::ItemStack const& oldItem, ::ItemStack const& newItem);
144
145 MCAPI ::Container* $_getContainer() const;
146 // NOLINTEND
147
148public:
149 // vftables
150 // NOLINTBEGIN
151 MCAPI static void** $vftable();
152 // NOLINTEND
153};
Definition BlockPos.h:17
Definition ContainerModel.h:25
Definition ContainerWeakRef.h:17
Definition Container.h:31
Definition ItemStack.h:23
Definition LevelContainerModel.h:22
Definition Player.h:123
Definition ActorUniqueID.h:5