LeviLamina
Loading...
Searching...
No Matches
ItemStackNetManagerClient.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/WeakRef.h"
7#include "mc/deps/shared_types/legacy/ContainerType.h"
8#include "mc/world/containers/ContainerEnumName.h"
9#include "mc/world/inventory/ContainerWeakRef.h"
10#include "mc/world/inventory/network/ItemStackNetManagerBase.h"
11#include "mc/world/inventory/network/TypedClientNetId.h"
12
13// auto generated forward declare list
14// clang-format off
15class BlockSource;
17class ContainerModel;
18class EntityContext;
22class SparseContainer;
27// clang-format on
28
30public:
31 // ItemStackNetManagerClient inner types declare
32 // clang-format off
33 struct ClientScreenData;
37 // clang-format on
38
39 // ItemStackNetManagerClient inner types define
41 public:
42 // member variables
43 // NOLINTBEGIN
44 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::SparseContainerClient>> mSparseContainer;
45 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ItemStackRequestId, ::std::vector<::HistoricPredictionData>>>
46 mHistoricPredictions;
47 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ItemStackRequestId, ::std::vector<::HistoricPredictionData>>>
48 mZeroedOutItems;
49 // NOLINTEND
50
51 public:
52 // virtual functions
53 // NOLINTBEGIN
54 // vIndex: 0
55 virtual ~PredictiveContainer() = default;
56 // NOLINTEND
57 };
58
60 public:
61 // member variables
62 // NOLINTBEGIN
63 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::ContainerModel>> mOwnedContainer;
64 // NOLINTEND
65
66 public:
67 // virtual functions
68 // NOLINTBEGIN
69 // vIndex: 0
70 virtual ~OwningPredictiveContainer() /*override*/ = default;
71 // NOLINTEND
72 };
73
75 public:
76 // member variables
77 // NOLINTBEGIN
78 ::ll::TypedStorage<8, 48, ::ContainerWeakRef> mContainerWeakRef;
79 ::ll::TypedStorage<8, 8, ::ItemStackNetManagerClient::PredictiveContainer*> mContainer;
80 // NOLINTEND
81 };
82
84 public:
85 // member variables
86 // NOLINTBEGIN
87 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ContainerEnumName, ::std::unordered_set<uchar>>>
88 mLegacyTransactionSetItemSlots;
89 ::ll::TypedStorage<
90 8,
91 64,
92 ::std::
93 unordered_map<::ItemStackRequestId, ::std::vector<::ItemStackNetManagerClient::PredictiveContainer*>>>
94 mRequestContainers;
95 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::ClientScratchContainer>>> mClientScratchContainers;
96 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::ItemStackNetManagerClient::PredictiveContainer>>>
97 mPlayerOwnedPredictiveContainers;
98 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::ItemStackNetManagerClient::PredictiveContainer>>>
99 mOpenSessionPredictiveContainers;
100 ::ll::TypedStorage<
101 8,
102 64,
103 ::std::unordered_map<::FullContainerName, ::ItemStackNetManagerClient::OpenSessionContainerData>>
104 mOpenSessionContainerMap;
105 ::ll::TypedStorage<
106 8,
107 64,
108 ::std::unordered_map<::FullContainerName, ::ItemStackNetManagerClient::OpenSessionContainerData>>
109 mHudContainerMap;
110 // NOLINTEND
111 };
112
113public:
114 // member variables
115 // NOLINTBEGIN
116 ::ll::TypedStorage<1, 1, bool> mIsHandlingResponse;
117 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackRequestData>> mRequest;
118 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackRequestBatch>> mRequestBatch;
119 ::ll::TypedStorage<8, 24, ::WeakRef<::EntityContext>> mRequestScreen;
120 // NOLINTEND
121
122public:
123 // virtual functions
124 // NOLINTBEGIN
125 // vIndex: 0
126 virtual ~ItemStackNetManagerClient() /*override*/ = default;
127
128 // vIndex: 8
129 virtual ::SparseContainer*
130 initOpenContainer(::BlockSource&, ::FullContainerName const&, ::ContainerWeakRef const&) /*override*/;
131
132 // vIndex: 2
133 virtual ::ItemStackRequestId getRequestId() const /*override*/;
134
135 // vIndex: 4
136 virtual bool allowInventoryTransactionManager() const /*override*/;
137
138 // vIndex: 5
139 virtual ::gsl::final_action<::std::function<void()>> _tryBeginClientLegacyTransactionRequest() /*override*/;
140
141 // vIndex: 9
142 virtual void _addLegacyTransactionRequestSetItemSlot(
144 ::SharedTypes::Legacy::ContainerType,
145 int
146 ) /*override*/;
147
148 // vIndex: 10
149 virtual void _initScreen(::ItemStackNetManagerScreen&) /*override*/;
150 // NOLINTEND
151
152public:
153 // virtual function thunks
154 // NOLINTBEGIN
155
156 // NOLINTEND
157};
Definition BlockSource.h:67
Definition ClientScratchContainer.h:13
Definition ContainerModel.h:25
Definition ContainerWeakRef.h:17
Definition EntityContext.h:16
Definition ItemStackNetManagerBase.h:28
Definition ItemStackNetManagerClient.h:29
Definition ItemStackNetManagerScreen.h:9
Definition ItemStackRequestBatch.h:14
Definition ItemStackRequestData.h:18
Definition SparseContainerClient.h:14
Definition SparseContainer.h:20
STL namespace.
Definition FullContainerName.h:8
Definition HistoricPredictionData.h:8
Definition ItemStackNetManagerClient.h:83
Definition ItemStackNetManagerClient.h:74
Definition ItemStackNetManagerClient.h:59
Definition ItemStackNetManagerClient.h:40
Definition ItemStackRequestIdTag.h:5