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/EquipmentSlot.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
12class BlockSource;
13class Interaction;
14class ItemStack;
15class Level;
16class LootTables;
17class Player;
18struct ItemSlotInfo;
19// clang-format on
20
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<2, 2, short> mCooldownCounter;
26 // NOLINTEND
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI bool
32 _runInteraction(::Actor& owner, ::Interaction const& desc, ::Player& player, ::ActorInteraction& interaction);
33
34 MCAPI bool getInteraction(::Actor& owner, ::Player& player, ::ActorInteraction& interaction);
35 // NOLINTEND
36
37public:
38 // static functions
39 // NOLINTBEGIN
40 MCAPI static void
41 _tryDropItem(::BlockSource& region, ::Actor& owner, ::ItemSlotInfo const& itemSlotInfo, float yOffset);
42
43 MCAPI static void _tryEquipItem(
44 ::Actor& owner,
45 ::Player& player,
46 ::ItemStack& usingItem,
47 ::ItemStack const& usedItemCopy,
48 ::ItemSlotInfo const& itemSlotInfo,
49 bool& useItemEventSent,
50 bool& postponedReplace
51 );
52
53 MCAPI static void _tryRepairItem(::Actor& owner, ::ItemSlotInfo const& itemSlotInfo, int amount);
54
55 MCAPI static void _trySendEquipmentSlot(::Actor& owner, ::SharedTypes::Legacy::EquipmentSlot equipmentSlot);
56
57 MCAPI static void _trySpawnItems(
58 ::Level& level,
59 ::Actor& owner,
60 ::LootTables& lootTables,
61 ::std::string const& lootTableName,
62 float yOffset
63 );
64 // NOLINTEND
65};
Definition ActorInteraction.h:5
Definition Actor.h:105
Definition BlockSource.h:68
Definition InteractComponent.h:21
Definition Interaction.h:10
Definition ItemStack.h:26
Definition Level.h:249
Definition LootTables.h:14
Definition Player.h:125
Definition ItemSlotInfo.h:5