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