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