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: 24
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 void sendPlayerInventory() const /*override*/;
100
101 // vIndex: 18
102 virtual bool isSneaking() const /*override*/;
103
104 // vIndex: 3
105 virtual ::Block const& unwrapBlock(uint const& block) const /*override*/;
106
107 // vIndex: 19
108 virtual ::Block const& getBlock(::BlockPos const& pos) const /*override*/;
109
110 // vIndex: 20
111 virtual ::Block const& getExtraBlock(::BlockPos const& pos) const /*override*/;
112
113 // vIndex: 21
114 virtual bool isLastBuildBlockInteractive() const /*override*/;
115
116 // vIndex: 22
117 virtual void sendBlockInteractedWith(::BlockPos const& pos) /*override*/;
118
119 // vIndex: 23
120 virtual ::DepenetrationComponent& getDepenetrationComponent() /*override*/;
121
122 // vIndex: 0
123 virtual ~PlayerTransactionSubject() /*override*/ = default;
124 // NOLINTEND
125
126public:
127 // virtual function thunks
128 // NOLINTBEGIN
129 MCNAPI void $setSelectedSlot(int slot, ::ContainerID containerId);
130
131 MCNAPI bool $isAlive() const;
132
133 MCNAPI ::ServerAuthMovementMode $getMovementAuthorityMode() const;
134
135 MCNAPI ::ItemStack $unwrapItem(::NetworkItemStackDescriptor const& item) const;
136
137 MCNAPI ::ItemStack const& $getSelectedItem() const;
138
139 MCNAPI void $setSelectedItem(::ItemStack const& item);
140
141 MCNAPI ::PlayerInventorySlotData $getSelectedSlot() const;
142
143 MCNAPI float $getMaxPickRange() const;
144
145 MCNAPI ::Vec3 $getPosition() const;
146
147 MCNAPI void $setPosition(::Vec3 const& position);
148
150 ::std::function<void(::Container&, int, ::ItemStack const&, ::ItemStack const&)>&& callback,
151 ::std::function<void()>&& execute
152 );
153
154 MCNAPI void $addExpectedAction(::InventoryAction const& action);
155
156 MCNAPI bool $baseUseItem(::ItemStack& item);
157
158 MCNAPI ::InteractionResult $useItemOn(
159 ::ItemStack& item,
160 ::BlockPos const& at,
161 uchar face,
162 ::Vec3 const& hit,
163 ::Block const* targetBlock,
164 bool isFirstEvent
165 );
166
167 MCNAPI void $resendBlocksAroundArea(::BlockPos const& pos, uchar facing) const;
168
169 MCNAPI void $resendPlayerState() const;
170
171 MCNAPI void $sendPlayerInventory() const;
172
173 MCNAPI bool $isSneaking() const;
174
175 MCNAPI ::Block const& $unwrapBlock(uint const& block) const;
176
177 MCNAPI ::Block const& $getBlock(::BlockPos const& pos) const;
178
179 MCNAPI ::Block const& $getExtraBlock(::BlockPos const& pos) const;
180
181 MCNAPI bool $isLastBuildBlockInteractive() const;
182
183 MCNAPI void $sendBlockInteractedWith(::BlockPos const& pos);
184
185 MCNAPI ::DepenetrationComponent& $getDepenetrationComponent();
186 // NOLINTEND
187
188public:
189 // vftables
190 // NOLINTBEGIN
191 MCNAPI static void** $vftable();
192 // NOLINTEND
193};
Definition BlockPos.h:18
Definition Block.h:38
Definition Container.h:30
Definition IItemUseTransactionSubject.h:23
Definition InteractionResult.h:5
Definition InventoryAction.h:15
Definition ItemStack.h:25
Definition NetworkItemStackDescriptor.h:18
Definition PlayerTransactionSubject.h:24
MCAPI void $setPosition(::Vec3 const &position)
MCAPI void $createTransactionContext(::std::function< void(::Container &, int, ::ItemStack const &, ::ItemStack const &)> &&callback, ::std::function< void()> &&execute)
MCAPI void $addExpectedAction(::InventoryAction const &action)
MCAPI bool $isAlive() const
MCAPI::ServerAuthMovementMode $getMovementAuthorityMode() const
MCAPI void $resendBlocksAroundArea(::BlockPos const &pos, uchar facing) const
MCAPI void $setSelectedItem(::ItemStack const &item)
MCAPI::InteractionResult $useItemOn(::ItemStack &item, ::BlockPos const &at, uchar face, ::Vec3 const &hit, ::Block const *targetBlock, bool isFirstEvent)
MCAPI::Block const & $getBlock(::BlockPos const &pos) const
MCAPI void $sendPlayerInventory() const
MCAPI void $setSelectedSlot(int slot, ::ContainerID containerId)
MCAPI::ItemStack const & $getSelectedItem() const
MCAPI bool $baseUseItem(::ItemStack &item)
MCAPI::DepenetrationComponent & $getDepenetrationComponent()
MCAPI bool $isSneaking() const
MCAPI float $getMaxPickRange() const
static MCAPI void ** $vftable()
MCAPI::Block const & $unwrapBlock(uint const &block) const
MCAPI::Block const & $getExtraBlock(::BlockPos const &pos) const
MCAPI void $resendPlayerState() const
MCAPI void $sendBlockInteractedWith(::BlockPos const &pos)
MCAPI bool $isLastBuildBlockInteractive() const
MCAPI::PlayerInventorySlotData $getSelectedSlot() const
MCAPI::Vec3 $getPosition() const
MCAPI::ItemStack $unwrapItem(::NetworkItemStackDescriptor const &item) const
Definition Vec3.h:10
Definition DepenetrationComponent.h:13
Definition PlayerInventorySlotData.h:8
Definition Alias.h:14