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
7class Actor;
10class CompoundTag;
11class DataLoadHelper;
13class ItemStack;
14class Player;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<4, 4, int> mAge;
22 ::ll::TypedStorage<1, 1, bool> mGrowthPaused;
23 // NOLINTEND
24
25public:
26 // member functions
27 // NOLINTBEGIN
28 MCAPI ::InteractionResult _growthToggle(
29 ::Actor& actor,
30 ::Player& player,
31 ::ActorInteraction& interaction,
32 ::AgeableDefinition const& definition,
33 ::ItemStack const& item,
34 bool growthPaused
35 );
36
37 MCAPI void addAdditionalSaveData(::CompoundTag& tag) const;
38
39 MCFOLD int getAge() const;
40
41 MCAPI ::InteractionResult getInteraction(::Actor& actor, ::Player& player, ::ActorInteraction& interaction);
42
43 MCFOLD bool isGrowthPaused() const;
44
45 MCAPI void readAdditionalSaveData(::Actor&, ::CompoundTag const& tag, ::DataLoadHelper&);
46
47 MCAPI void setAge(int age);
48 // NOLINTEND
49};
Definition ActorInteraction.h:8
Definition Actor.h:125
Definition AgeableDefinition.h:17
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition InteractionResult.h:5
Definition ItemStack.h:35
Definition Player.h:137
Definition AgeableComponent.h:17