LeviLamina
Loading...
Searching...
No Matches
TameableComponent.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated forward declare list
6
// clang-format off
7
class
Actor
;
8
class
ActorInteraction
;
9
class
ItemDescriptor
;
10
class
Player
;
11
struct
ActorDefinitionTameItem
;
12
// clang-format on
13
14
class
TameableComponent
{
15
public
:
16
// member variables
17
// NOLINTBEGIN
18
::ll::TypedStorage<4, 4, float> mChance;
19
::ll::TypedStorage<8, 24, ::std::vector<::ActorDefinitionTameItem>> mTameItems;
20
// NOLINTEND
21
22
public
:
23
// member functions
24
// NOLINTBEGIN
25
MCAPI
bool
_attemptToTame(
::Actor
& owner,
::Player
& player, ::std::optional<::ItemDescriptor>
const
& resultItem);
26
27
MCAPI
bool
_canTame(
::Actor
& owner,
::Player
& player,
::ItemDescriptor
& resultItemOut);
28
29
MCAPI
bool
getInteraction(
::Actor
& owner,
::Player
& player,
::ActorInteraction
& interaction);
30
31
MCAPI
void
tame(
::Actor
& owner,
::Player
& player);
32
// NOLINTEND
33
34
public
:
35
// static functions
36
// NOLINTBEGIN
37
MCAPI
static
void
_becomeTame(
::Actor
& owner);
38
// NOLINTEND
39
};
ActorInteraction
Definition
ActorInteraction.h:5
Actor
Definition
Actor.h:105
ItemDescriptor
Definition
ItemDescriptor.h:23
Player
Definition
Player.h:125
TameableComponent
Definition
TameableComponent.h:14
ActorDefinitionTameItem
Definition
ActorDefinitionTameItem.h:8
src
mc
entity
components_json_legacy
TameableComponent.h
Generated on
for LeviLamina by
1.16.1