Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
AgeableComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/item/HandSlot.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
12class CompoundTag;
13class DataLoadHelper;
14class Interaction;
15class ItemStack;
16class Player;
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<4, 4, int> mAge;
24 ::ll::TypedStorage<1, 1, bool> mGrowthPaused;
25 // NOLINTEND
26
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCNAPI ::Interaction _growthToggle(
31 ::Actor& actor,
32 ::Player& player,
33 ::AgeableDefinition const& definition,
34 ::ItemStack const& item,
35 bool growthPaused,
36 ::HandSlot handSlot
37 );
38
39 MCNAPI void addAdditionalSaveData(::CompoundTag& tag) const;
40
41 MCNAPI ::Interaction getInteraction(::Actor& actor, ::Player& player, ::HandSlot handSlot);
42
44 // NOLINTEND
45};
Definition Actor.h:116
Definition AgeableDefinition.h:17
Definition CompoundTag.h:18
Definition DataLoadHelper.h:20
Definition Interaction.h:9
Definition ItemStack.h:26
Definition Player.h:131
Definition AgeableComponent.h:19
MCAPI::Interaction getInteraction(::Actor &actor, ::Player &player, ::HandSlot handSlot)
MCAPI::Interaction _growthToggle(::Actor &actor, ::Player &player, ::AgeableDefinition const &definition, ::ItemStack const &item, bool growthPaused, ::HandSlot handSlot)
MCAPI void addAdditionalSaveData(::CompoundTag &tag) const
MCAPI void readAdditionalSaveData(::Actor &, ::CompoundTag const &tag, ::DataLoadHelper &)