LeviLamina
Loading...
Searching...
No Matches
IItemUseTransactionSubject.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
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 // virtual functions
26 // NOLINTBEGIN
27 // vIndex: 0
28 virtual ~IItemUseTransactionSubject() = default;
29
30 // vIndex: 1
31 virtual bool isAlive() const = 0;
32
33 // vIndex: 2
34 virtual ::ItemStack unwrapItem(::NetworkItemStackDescriptor const&) const = 0;
35
36 // vIndex: 3
37 virtual ::Block const& unwrapBlock(uint const&) const = 0;
38
39 // vIndex: 4
40 virtual ::ItemStack const& getSelectedItem() const = 0;
41
42 // vIndex: 5
43 virtual void setSelectedItem(::ItemStack const&) = 0;
44
45 // vIndex: 6
46 virtual ::PlayerInventorySlotData getSelectedSlot() const = 0;
47
48 // vIndex: 7
49 virtual void setSelectedSlot(int, ::ContainerID) = 0;
50
51 // vIndex: 8
52 virtual float getMaxPickRange() const = 0;
53
54 // vIndex: 9
55 virtual ::Vec3 getPosition() const = 0;
56
57 // vIndex: 10
58 virtual void setPosition(::Vec3 const&) = 0;
59
60 // vIndex: 11
61 virtual void
62 createTransactionContext(::std::function<void(::Container&, int, ::ItemStack const&, ::ItemStack const&)>&&, ::std::function<void()>&&) = 0;
63
64 // vIndex: 12
65 virtual void addExpectedAction(::InventoryAction const&) = 0;
66
67 // vIndex: 13
68 virtual bool baseUseItem(::ItemStack&) = 0;
69
70 // vIndex: 14
71 virtual ::InteractionResult
72 useItemOn(::ItemStack&, ::BlockPos const&, uchar, ::Vec3 const&, ::Block const*, bool) = 0;
73
74 // vIndex: 15
75 virtual void resendBlocksAroundArea(::BlockPos const&, uchar) const = 0;
76
77 // vIndex: 16
78 virtual void resendPlayerState() const = 0;
79
80 // vIndex: 17
81 virtual bool isSneaking() const = 0;
82
83 // vIndex: 18
84 virtual ::Block const& getBlock(::BlockPos const&) const = 0;
85
86 // vIndex: 19
87 virtual ::Block const& getExtraBlock(::BlockPos const&) const = 0;
88
89 // vIndex: 20
90 virtual bool isLastBuildBlockInteractive() const = 0;
91
92 // vIndex: 21
93 virtual void sendBlockInteractedWith(::BlockPos const&) = 0;
94
95 // vIndex: 22
96 virtual ::DepenetrationComponent& getDepenetrationComponent() = 0;
97
98 // vIndex: 23
99 virtual ::ServerAuthMovementMode getMovementAuthorityMode() const = 0;
100 // NOLINTEND
101
102public:
103 // destructor thunk
104 // NOLINTBEGIN
105
106 // NOLINTEND
107
108public:
109 // virtual function thunks
110 // NOLINTBEGIN
111
112 // NOLINTEND
113};
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 Vec3.h:10
Definition DepenetrationComponent.h:11
Definition PlayerInventorySlotData.h:5