LeviLamina
Loading...
Searching...
No Matches
BreedableComponent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorUniqueID.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
12class CompoundTag;
13class DataLoadHelper;
14class Interaction;
15class Player;
16class WeakEntityRef;
17// clang-format on
18
20public:
21 // BreedableComponent inner types declare
22 // clang-format off
23 struct LoveCauses;
24 // clang-format on
25
26 // BreedableComponent inner types define
27 struct LoveCauses {
28 public:
29 // member variables
30 // NOLINTBEGIN
31 ::ll::TypedStorage<8, 8, ::Player const*> mPrimary;
32 ::ll::TypedStorage<8, 8, ::Player const*> mSecondary;
33 // NOLINTEND
34 };
35
36 using MatingResult = ::std::vector<::WeakEntityRef>;
37
38public:
39 // member variables
40 // NOLINTBEGIN
41 ::ll::TypedStorage<8, 8, ::BreedableDefinition const*> mStaticData;
42 ::ll::TypedStorage<4, 4, int> mLoveTimer;
43 ::ll::TypedStorage<4, 4, int> mBreedCooldown;
44 ::ll::TypedStorage<4, 4, int> mBreedCooldownTime;
45 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mLoveCause;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI void addAdditionalSaveData(::CompoundTag& tag) const;
52
53 MCAPI bool canMate(::Actor const& owner, ::Actor const& partner) const;
54
55 MCAPI ::Interaction getInteraction(::Actor& owner, ::Player& player);
56
57 MCAPI ::std::vector<::WeakEntityRef> mate(::Actor& owner, ::Actor& partner);
58
59 MCAPI void readAdditionalSaveData(::Actor&, ::CompoundTag const& tag, ::DataLoadHelper&);
60 // NOLINTEND
61
62public:
63 // static functions
64 // NOLINTBEGIN
65 MCAPI static void _spawnExperienceOrbs(::Actor& owner);
66
67 MCAPI static void _spawnLoveParticles(::Actor& owner);
68
69 MCAPI static bool meetsSittingRequirements(::Actor const& actor);
70 // NOLINTEND
71};
Definition Actor.h:113
Definition BreedableComponent.h:19
Definition BreedableDefinition.h:19
Definition CompoundTag.h:18
Definition DataLoadHelper.h:20
Definition Interaction.h:9
Definition Player.h:129
Definition WeakEntityRef.h:14
Definition BreedableComponent.h:27