LeviLamina
Loading...
Searching...
No Matches
LevelContainerManagerModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorUniqueID.h"
7#include "mc/world/ContainerID.h"
8#include "mc/world/containers/managers/models/ContainerManagerModel.h"
9#include "mc/world/level/BlockPos.h"
10#include "mc/world/level/block/actor/BlockActorType.h"
11
12// auto generated forward declare list
13// clang-format off
14class BlockActor;
15class Container;
17class ItemStack;
18class Player;
19// clang-format on
20
21class LevelContainerManagerModel : public ::ContainerManagerModel {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
26 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mEntityUniqueID;
27 ::ll::TypedStorage<1, 1, ::BlockActorType> mBlockActorType;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 LevelContainerManagerModel();
33
34public:
35 // virtual functions
36 // NOLINTBEGIN
37 virtual ~LevelContainerManagerModel() /*override*/;
38
39 virtual ::std::vector<::ItemStack> getItemCopies() const /*override*/;
40
41 virtual void setSlot(int slot, ::ItemStack const& item, bool fromNetwork) /*override*/;
42
43 virtual ::ItemStack const& getSlot(int slot) const /*override*/;
44
45 virtual void setData(int, int) /*override*/;
46
47 virtual void broadcastChanges() /*override*/;
48
49 virtual bool isValid(float pickRange) /*override*/;
50
51 virtual ::ContainerScreenContext _postInit() /*override*/;
52
53 virtual void _onDynamicContainerContentsChanged() /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI LevelContainerManagerModel(::ContainerID containerId, ::Player& player, ::ActorUniqueID uniqueID);
60
61 MCAPI LevelContainerManagerModel(
62 ::ContainerID containerId,
63 ::Player& player,
64 ::BlockPos const& pos,
65 ::BlockActorType blockEntityType
66 );
67
68 MCAPI ::BlockActor* _getBlockEntity();
69
70 MCAPI ::Container* _getRawContainer();
71
72 MCFOLD ::BlockPos const& getBlockPos() const;
73
74 MCAPI ::ActorUniqueID getEntityUniqueID() const;
75 // NOLINTEND
76
77public:
78 // constructor thunks
79 // NOLINTBEGIN
80 MCAPI void* $ctor(::ContainerID containerId, ::Player& player, ::ActorUniqueID uniqueID);
81
82 MCAPI void*
83 $ctor(::ContainerID containerId, ::Player& player, ::BlockPos const& pos, ::BlockActorType blockEntityType);
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89 MCAPI void $dtor();
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95 MCAPI ::std::vector<::ItemStack> $getItemCopies() const;
96
97 MCAPI void $setSlot(int slot, ::ItemStack const& item, bool fromNetwork);
98
99 MCAPI ::ItemStack const& $getSlot(int slot) const;
100
101 MCFOLD void $setData(int, int);
102
103 MCAPI void $broadcastChanges();
104
105 MCAPI bool $isValid(float pickRange);
106
107 MCAPI ::ContainerScreenContext $_postInit();
108
109 MCAPI void $_onDynamicContainerContentsChanged();
110
111
112 // NOLINTEND
113
114public:
115 // vftables
116 // NOLINTBEGIN
117 MCAPI static void** $vftable();
118 // NOLINTEND
119};
Definition BlockActor.h:30
Definition BlockPos.h:21
Definition ContainerScreenContext.h:19
Definition Container.h:34
Definition ItemStack.h:35
Definition Player.h:137
Definition ActorUniqueID.h:10