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