LeviLamina
Loading...
Searching...
No Matches
PlayerTransactionSubject.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/entity/components/ServerAuthMovementMode.h"
7#include "mc/world/ContainerID.h"
8#include "mc/world/inventory/transaction/IItemUseTransactionSubject.h"
9
10// auto generated forward declare list
11// clang-format off
12class Block;
13class BlockPos;
14class Container;
16class InventoryAction;
17class ItemStack;
19class Vec3;
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 7
41 virtual void setSelectedSlot(int slot, ::ContainerID containerId) /*override*/;
42
43 // vIndex: 1
44 virtual bool isAlive() const /*override*/;
45
46 // vIndex: 23
47 virtual ::ServerAuthMovementMode getMovementAuthorityMode() const /*override*/;
48
49 // vIndex: 2
50 virtual ::ItemStack unwrapItem(::NetworkItemStackDescriptor const& item) const /*override*/;
51
52 // vIndex: 4
53 virtual ::ItemStack const& getSelectedItem() const /*override*/;
54
55 // vIndex: 5
56 virtual void setSelectedItem(::ItemStack const& item) /*override*/;
57
58 // vIndex: 6
59 virtual ::PlayerInventorySlotData getSelectedSlot() const /*override*/;
60
61 // vIndex: 8
62 virtual float getMaxPickRange() const /*override*/;
63
64 // vIndex: 9
65 virtual ::Vec3 getPosition() const /*override*/;
66
67 // vIndex: 10
68 virtual void setPosition(::Vec3 const& position) /*override*/;
69
70 // vIndex: 11
71 virtual void createTransactionContext(
72 ::std::function<void(::Container&, int, ::ItemStack const&, ::ItemStack const&)>&& callback,
73 ::std::function<void()>&& execute
74 ) /*override*/;
75
76 // vIndex: 12
77 virtual void addExpectedAction(::InventoryAction const& action) /*override*/;
78
79 // vIndex: 13
80 virtual bool baseUseItem(::ItemStack& item) /*override*/;
81
82 // vIndex: 14
83 virtual ::InteractionResult useItemOn(
84 ::ItemStack& item,
85 ::BlockPos const& at,
86 uchar face,
87 ::Vec3 const& hit,
88 ::Block const* targetBlock,
89 bool isFirstEvent
90 ) /*override*/;
91
92 // vIndex: 15
93 virtual void resendBlocksAroundArea(::BlockPos const& pos, uchar facing) const /*override*/;
94
95 // vIndex: 16
96 virtual void resendPlayerState() const /*override*/;
97
98 // vIndex: 17
99 virtual bool isSneaking() const /*override*/;
100
101 // vIndex: 3
102 virtual ::Block const& unwrapBlock(uint const& block) const /*override*/;
103
104 // vIndex: 18
105 virtual ::Block const& getBlock(::BlockPos const& pos) const /*override*/;
106
107 // vIndex: 19
108 virtual ::Block const& getExtraBlock(::BlockPos const& pos) const /*override*/;
109
110 // vIndex: 20
111 virtual bool isLastBuildBlockInteractive() const /*override*/;
112
113 // vIndex: 21
114 virtual void sendBlockInteractedWith(::BlockPos const& pos) /*override*/;
115
116 // vIndex: 22
117 virtual ::DepenetrationComponent& getDepenetrationComponent() /*override*/;
118
119 // vIndex: 0
120 virtual ~PlayerTransactionSubject() /*override*/ = default;
121 // NOLINTEND
122
123public:
124 // destructor thunk
125 // NOLINTBEGIN
126
127 // NOLINTEND
128
129public:
130 // virtual function thunks
131 // NOLINTBEGIN
132 MCAPI void $setSelectedSlot(int slot, ::ContainerID containerId);
133
134 MCAPI bool $isAlive() const;
135
136 MCAPI ::ServerAuthMovementMode $getMovementAuthorityMode() const;
137
138 MCAPI ::ItemStack $unwrapItem(::NetworkItemStackDescriptor const& item) const;
139
140 MCAPI ::ItemStack const& $getSelectedItem() const;
141
142 MCAPI void $setSelectedItem(::ItemStack const& item);
143
144 MCAPI ::PlayerInventorySlotData $getSelectedSlot() const;
145
146 MCAPI float $getMaxPickRange() const;
147
148 MCAPI ::Vec3 $getPosition() const;
149
150 MCAPI void $setPosition(::Vec3 const& position);
151
152 MCAPI void $createTransactionContext(
153 ::std::function<void(::Container&, int, ::ItemStack const&, ::ItemStack const&)>&& callback,
154 ::std::function<void()>&& execute
155 );
156
157 MCAPI void $addExpectedAction(::InventoryAction const& action);
158
159 MCAPI bool $baseUseItem(::ItemStack& item);
160
161 MCAPI ::InteractionResult $useItemOn(
162 ::ItemStack& item,
163 ::BlockPos const& at,
164 uchar face,
165 ::Vec3 const& hit,
166 ::Block const* targetBlock,
167 bool isFirstEvent
168 );
169
170 MCAPI void $resendBlocksAroundArea(::BlockPos const& pos, uchar facing) const;
171
172 MCAPI void $resendPlayerState() const;
173
174 MCAPI bool $isSneaking() const;
175
176 MCAPI ::Block const& $unwrapBlock(uint const& block) const;
177
178 MCAPI ::Block const& $getBlock(::BlockPos const& pos) const;
179
180 MCAPI ::Block const& $getExtraBlock(::BlockPos const& pos) const;
181
182 MCAPI bool $isLastBuildBlockInteractive() const;
183
184 MCAPI void $sendBlockInteractedWith(::BlockPos const& pos);
185
186 MCAPI ::DepenetrationComponent& $getDepenetrationComponent();
187 // NOLINTEND
188
189public:
190 // vftables
191 // NOLINTBEGIN
192 MCAPI static void** $vftable();
193 // NOLINTEND
194};
Definition BlockPos.h:18
Definition Block.h:36
Definition Container.h:30
Definition IItemUseTransactionSubject.h:23
Definition InteractionResult.h:5
Definition InventoryAction.h:13
Definition ItemStack.h:25
Definition NetworkItemStackDescriptor.h:18
Definition PlayerTransactionSubject.h:24
Definition Vec3.h:10
Definition DepenetrationComponent.h:11
Definition PlayerInventorySlotData.h:5
Definition Alias.h:14