LeviLamina
Loading...
Searching...
No Matches
HudContainerManagerModel.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/pub_sub/Publisher.h"
7#include "mc/world/ContainerID.h"
8#include "mc/world/containers/managers/models/ContainerManagerModel.h"
9
10// auto generated forward declare list
11// clang-format off
13class ItemStack;
14class Player;
15namespace Bedrock::PubSub::ThreadModel { struct MultiThreaded; }
16// clang-format on
17
19public:
20 // HudContainerManagerModel inner types define
21 using DynamicContainerRemovalPublisher = ::Bedrock::PubSub::
22 Publisher<void(::std::vector<::std::string> const&), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0>;
23
24 using ItemStackVector = ::std::vector<::ItemStack>;
25
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mLastSlots;
30 ::ll::TypedStorage<
31 8,
32 128,
33 ::Bedrock::PubSub::
34 Publisher<void(::std::vector<::std::string> const&), ::Bedrock::PubSub::ThreadModel::MultiThreaded, 0>>
35 mOnDynamicContainerRemovalPublisher;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
41
42public:
43 // virtual functions
44 // NOLINTBEGIN
45 // vIndex: 0
46 virtual ~HudContainerManagerModel() /*override*/ = default;
47
48 // vIndex: 7
49 virtual ::std::vector<::ItemStack> getItemCopies() const /*override*/;
50
51 // vIndex: 8
52 virtual void setSlot(int slot, ::ItemStack const& item, bool) /*override*/;
53
54 // vIndex: 9
55 virtual ::ItemStack const& getSlot(int slot) const /*override*/;
56
57 // vIndex: 10
58 virtual void setData(int id, int value) /*override*/;
59
60 // vIndex: 13
61 virtual void broadcastChanges() /*override*/;
62
63 // vIndex: 20
64 virtual ::ContainerScreenContext _postInit() /*override*/;
65 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
70 MCNAPI HudContainerManagerModel(::ContainerID containerId, ::Player& player);
71 // NOLINTEND
72
73public:
74 // constructor thunks
75 // NOLINTBEGIN
76 MCNAPI void* $ctor(::ContainerID containerId, ::Player& player);
77 // NOLINTEND
78
79public:
80 // virtual function thunks
81 // NOLINTBEGIN
82 MCNAPI ::std::vector<::ItemStack> $getItemCopies() const;
83
84 MCNAPI void $setSlot(int slot, ::ItemStack const& item, bool);
85
86 MCNAPI ::ItemStack const& $getSlot(int slot) const;
87
88 MCNAPI void $setData(int id, int value);
89
90 MCNAPI void $broadcastChanges();
91
92 MCNAPI ::ContainerScreenContext $_postInit();
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCNAPI static void** $vftable();
99 // NOLINTEND
100};
Definition ContainerManagerModel.h:29
Definition ContainerScreenContext.h:17
Definition HudContainerManagerModel.h:18
MCAPI void $setData(int id, int value)
MCAPI void * $ctor(::ContainerID containerId, ::Player &player)
MCAPI::ContainerScreenContext $_postInit()
MCAPI void $broadcastChanges()
MCAPI::ItemStack const & $getSlot(int slot) const
MCAPI HudContainerManagerModel(::ContainerID containerId, ::Player &player)
static MCAPI void ** $vftable()
MCAPI ::std::vector<::ItemStack > $getItemCopies() const
MCAPI void $setSlot(int slot, ::ItemStack const &item, bool)
Definition ItemStack.h:25
Definition Player.h:119