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