LeviLamina
Loading...
Searching...
No Matches
InteractComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/shared_types/legacy/actor/ArmorSlot.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
12class BlockSource;
13class Interaction;
14class ItemStack;
15class Player;
16struct ItemSlotInfo;
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<2, 2, short> mCooldownCounter;
24 // NOLINTEND
25
26public:
27 // member functions
28 // NOLINTBEGIN
29 MCAPI bool
30 _runInteraction(::Actor& owner, ::Interaction const& desc, ::Player& player, ::ActorInteraction& interaction);
31
32 MCAPI bool getInteraction(::Actor& owner, ::Player& player, ::ActorInteraction& interaction);
33 // NOLINTEND
34
35public:
36 // static functions
37 // NOLINTBEGIN
38 MCAPI static void _spawnParticle(
39 ::BlockSource& region,
40 ::Actor& owner,
41 ::Player& player,
42 ::ItemStack const& usedItemCopy,
43 ::Interaction const& description
44 );
45
46 MCAPI static void _tryDropItem(::BlockSource& region, ::Actor& owner, ::ItemSlotInfo const& itemSlotInfo);
47
48 MCAPI static void _tryEquipItem(
49 ::Actor& owner,
50 ::Player& player,
51 ::ItemStack& usingItem,
52 ::ItemStack const& usedItemCopy,
53 ::ItemSlotInfo const& itemSlotInfo,
54 bool& useItemEventSent,
55 bool& postponedReplace
56 );
57
58 MCAPI static void _trySendArmorSlot(::Actor& owner, ::SharedTypes::Legacy::ArmorSlot armorSlot);
59 // NOLINTEND
60};
Definition ActorInteraction.h:5
Definition Actor.h:104
Definition BlockSource.h:67
Definition InteractComponent.h:19
Definition Interaction.h:10
Definition ItemStack.h:25
Definition Player.h:119
Definition ItemSlotInfo.h:5