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
10
class
Actor
;
11
class
ActorInteraction
;
12
class
BlockSource
;
13
class
Interaction
;
14
class
ItemStack
;
15
class
Player
;
16
struct
ItemSlotInfo
;
17
// clang-format on
18
19
class
InteractComponent
{
20
public
:
21
// member variables
22
// NOLINTBEGIN
23
::ll::TypedStorage<2, 2, short> mCooldownCounter;
24
// NOLINTEND
25
26
public
:
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
35
public
:
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
};
ActorInteraction
Definition
ActorInteraction.h:5
Actor
Definition
Actor.h:104
BlockSource
Definition
BlockSource.h:67
InteractComponent
Definition
InteractComponent.h:19
Interaction
Definition
Interaction.h:10
ItemStack
Definition
ItemStack.h:25
Player
Definition
Player.h:119
ItemSlotInfo
Definition
ItemSlotInfo.h:5
src
mc
entity
components_json_legacy
InteractComponent.h
Generated on Sat Apr 26 2025 05:55:36 for LeviLamina by
1.12.0