LeviLamina
Loading...
Searching...
No Matches
ItemEventListener.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/events/EventResult.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class ItemDescriptor;
12class ItemStackBase;
13class Player;
15// clang-format on
16
18public:
19 // ItemEventListener inner types define
21
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 // vIndex: 0
26 virtual ~ItemEventListener() = default;
27
28 // vIndex: 1
29 virtual ::EventResult onInventoryItemOpened(bool workbench);
30
31 // vIndex: 2
32 virtual ::EventResult onInventoryItemClosed();
33
34 // vIndex: 3
35 virtual ::EventResult
36 onItemTransferredFromContainer(::ItemStackBase const& item, ::std::string const& srcContainerName);
37
38 // vIndex: 4
39 virtual ::EventResult
40 onItemTransferredToContainer(::ItemStackBase const& item, ::std::string const& dstContainerName);
41
42 // vIndex: 5
43 virtual ::EventResult
44 onPreviewItemPopulatedInContainer(::ItemStackBase const& item, ::std::string const& containerName);
45
46 // vIndex: 6
47 virtual ::EventResult onInventoryLayoutSelected(int activeInventoryLayout, int activeInventoryLeftTabIndex);
48
49 // vIndex: 7
50 virtual ::EventResult onInventoryItemCraftedAutomaticallyByRecipe(::ItemStackBase const& item);
51
52 // vIndex: 8
53 virtual ::EventResult onRecipeSelected(::ItemStackBase const& item);
54
55 // vIndex: 9
56 virtual ::EventResult
57 onItemSmelted(::Player& player, ::ItemDescriptor const& item, ::ItemDescriptor const& lastFuelItem);
58
59 // vIndex: 10
60 virtual ::EventResult onItemSpawningActor(::Actor const& spawningActor);
61
62 // vIndex: 11
63 virtual ::EventResult onItemSpawnedActor(::ItemStackBase const& item, ::Actor const& spawnedActor);
64
65 // vIndex: 12
66 virtual ::EventResult onItemModifiedActor(::ItemStackBase const& item, ::Actor const& modifiedActor);
67
68 // vIndex: 13
69 virtual ::EventResult onItemSelectedSlot(int slot);
70
71 // vIndex: 14
72 virtual ::EventResult onItemSelected(::ItemStackBase const&);
73
74 // vIndex: 15
75 virtual ::EventResult onItemDefinitionEventTriggered(::ItemStackBase const& item, ::std::string const& event);
76
77 // vIndex: 16
78 virtual ::EventResult onEvent(::ItemNotificationEvent const& event);
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90 MCFOLD ::EventResult $onInventoryItemOpened(bool workbench);
91
92 MCFOLD ::EventResult $onInventoryItemClosed();
93
94 MCFOLD ::EventResult
95 $onItemTransferredFromContainer(::ItemStackBase const& item, ::std::string const& srcContainerName);
96
97 MCFOLD ::EventResult
98 $onItemTransferredToContainer(::ItemStackBase const& item, ::std::string const& dstContainerName);
99
100 MCFOLD ::EventResult
101 $onPreviewItemPopulatedInContainer(::ItemStackBase const& item, ::std::string const& containerName);
102
103 MCFOLD ::EventResult $onInventoryLayoutSelected(int activeInventoryLayout, int activeInventoryLeftTabIndex);
104
105 MCFOLD ::EventResult $onInventoryItemCraftedAutomaticallyByRecipe(::ItemStackBase const& item);
106
107 MCFOLD ::EventResult $onRecipeSelected(::ItemStackBase const& item);
108
109 MCFOLD ::EventResult
110 $onItemSmelted(::Player& player, ::ItemDescriptor const& item, ::ItemDescriptor const& lastFuelItem);
111
112 MCFOLD ::EventResult $onItemSpawningActor(::Actor const& spawningActor);
113
114 MCFOLD ::EventResult $onItemSpawnedActor(::ItemStackBase const& item, ::Actor const& spawnedActor);
115
116 MCFOLD ::EventResult $onItemModifiedActor(::ItemStackBase const& item, ::Actor const& modifiedActor);
117
118 MCFOLD ::EventResult $onItemSelectedSlot(int slot);
119
120 MCFOLD ::EventResult $onItemSelected(::ItemStackBase const&);
121
122 MCFOLD ::EventResult $onItemDefinitionEventTriggered(::ItemStackBase const& item, ::std::string const& event);
123
124 MCFOLD ::EventResult $onEvent(::ItemNotificationEvent const& event);
125 // NOLINTEND
126
127public:
128 // vftables
129 // NOLINTBEGIN
130 MCAPI static void** $vftable();
131 // NOLINTEND
132};
Definition Actor.h:104
Definition ItemDescriptor.h:22
Definition ItemEventListener.h:17
Definition ItemStackBase.h:35
Definition Player.h:119
Definition ItemNotificationEvent.h:48