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 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 MCNAPI bool
32 _runInteraction(::Actor& owner, ::Interaction const& desc, ::Player& player, ::ActorInteraction& interaction);
33
34 MCNAPI bool getInteraction(::Actor& owner, ::Player& player, ::ActorInteraction& interaction);
35 // NOLINTEND
36
37public:
38 // static functions
39 // NOLINTBEGIN
40 MCNAPI static void _spawnParticle(
41 ::BlockSource& region,
42 ::Actor& owner,
43 ::Player& player,
44 ::ItemStack const& usedItemCopy,
45 ::Interaction const& description
46 );
47
48 MCNAPI static void
49 _tryDropItem(::BlockSource& region, ::Actor& owner, ::ItemSlotInfo const& itemSlotInfo, float yOffset);
50
51 MCNAPI static void _tryEquipItem(
52 ::Actor& owner,
53 ::Player& player,
54 ::ItemStack& usingItem,
55 ::ItemStack const& usedItemCopy,
56 ::ItemSlotInfo const& itemSlotInfo,
57 bool& useItemEventSent,
58 bool& postponedReplace
59 );
60
61 MCNAPI static void _trySendArmorSlot(::Actor& owner, ::SharedTypes::Legacy::ArmorSlot armorSlot);
62
63 MCNAPI static void _trySpawnItems(
64 ::Level& level,
65 ::Actor& owner,
66 ::LootTables& lootTables,
67 ::std::string const& lootTableName,
68 float yOffset
69 );
70 // NOLINTEND
71};
Definition ActorInteraction.h:5
Definition Actor.h:103
Definition BlockSource.h:67
Definition InteractComponent.h:21
static MCAPI void _tryEquipItem(::Actor &owner, ::Player &player, ::ItemStack &usingItem, ::ItemStack const &usedItemCopy, ::ItemSlotInfo const &itemSlotInfo, bool &useItemEventSent, bool &postponedReplace)
static MCAPI void _trySendArmorSlot(::Actor &owner, ::SharedTypes::Legacy::ArmorSlot armorSlot)
static MCAPI void _tryDropItem(::BlockSource &region, ::Actor &owner, ::ItemSlotInfo const &itemSlotInfo, float yOffset)
static MCAPI void _spawnParticle(::BlockSource &region, ::Actor &owner, ::Player &player, ::ItemStack const &usedItemCopy, ::Interaction const &description)
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)
Definition Interaction.h:10
Definition ItemStack.h:25
Definition Level.h:239
Definition LootTables.h:11
Definition Player.h:120
Definition ItemSlotInfo.h:5