LeviLamina
Loading...
Searching...
No Matches
AgeableComponent.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
AgeableDefinition
;
9
class
CompoundTag
;
10
class
DataLoadHelper
;
11
class
Interaction
;
12
class
ItemStack
;
13
class
Player
;
14
// clang-format on
15
16
struct
AgeableComponent
{
17
public
:
18
// member variables
19
// NOLINTBEGIN
20
::ll::TypedStorage<4, 4, int> mAge;
21
::ll::TypedStorage<1, 1, bool> mGrowthPaused;
22
// NOLINTEND
23
24
public
:
25
// member functions
26
// NOLINTBEGIN
27
MCAPI ::Interaction _growthToggle(
28
::Actor
& actor,
29
::Player
& player,
30
::AgeableDefinition
const
& definition,
31
::ItemStack
const
& item,
32
bool
const
growthPaused
33
);
34
35
MCAPI
void
addAdditionalSaveData(
::CompoundTag
& tag)
const
;
36
37
MCAPI ::Interaction getInteraction(
::Actor
& actor,
::Player
& player);
38
39
MCAPI
void
readAdditionalSaveData(
::Actor
&,
::CompoundTag
const
& tag,
::DataLoadHelper
&);
40
// NOLINTEND
41
};
Actor
Definition
Actor.h:113
AgeableDefinition
Definition
AgeableDefinition.h:17
CompoundTag
Definition
CompoundTag.h:18
DataLoadHelper
Definition
DataLoadHelper.h:20
Interaction
Definition
Interaction.h:9
ItemStack
Definition
ItemStack.h:26
Player
Definition
Player.h:129
AgeableComponent
Definition
AgeableComponent.h:16
src
mc
entity
components
AgeableComponent.h
Generated on
for LeviLamina by
1.16.1