LeviLamina
Loading...
Searching...
No Matches
VillagerBase.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/comprehensive/ParticleType.h"
7#include "mc/world/actor/ActorEvent.h"
8#include "mc/world/actor/Mob.h"
9
10// auto generated forward declare list
11// clang-format off
13class CompoundTag;
14class DataLoadHelper;
15class EntityContext;
17// clang-format on
18
19class VillagerBase : public ::Mob {
20public:
21 // VillagerBase inner types define
22 enum class BiomeType : int {
23 Plains = 0,
24 Desert = 1,
25 Jungle = 2,
26 Savannah = 3,
27 Snow = 4,
28 Swamp = 5,
29 Taiga = 6,
30 Count = 7,
31 };
32
33public:
34 // member variables
35 // NOLINTBEGIN
36 ::ll::TypedStorage<1, 1, bool> mChasing;
37 ::ll::TypedStorage<1, 1, bool> mWillingToBreed;
38 // NOLINTEND
39
40public:
41 // prevent constructor by default
42 VillagerBase();
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual void addAdditionalSaveData(::CompoundTag& tag) const /*override*/;
48
49 virtual void readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
50
51 virtual void handleEntityEvent(::ActorEvent event, int data) /*override*/;
52
53 virtual void onLightningHit() /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI VillagerBase(
60 ::ActorDefinitionGroup* definitions,
61 ::ActorDefinitionIdentifier const& definitionName,
62 ::EntityContext& entityContext
63 );
64
65 MCAPI void _addParticlesAroundSelf(::ParticleType particleType);
66
67 MCAPI void consumeLoveFood();
68
69 MCAPI int getBreedingStackIndex() const;
70
71 MCAPI bool isChasing() const;
72
73 MCAPI bool isWillingToBreed(bool consumeFoodIfNecessary);
74
75 MCAPI void setChasing(bool chasing);
76
77 MCAPI void setWillingToBreed(bool willingToBreed);
78
79 MCAPI void stopGoals();
80 // NOLINTEND
81
82public:
83 // constructor thunks
84 // NOLINTBEGIN
85 MCAPI void* $ctor(
86 ::ActorDefinitionGroup* definitions,
87 ::ActorDefinitionIdentifier const& definitionName,
88 ::EntityContext& entityContext
89 );
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
96
97 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
98
99 MCAPI void $handleEntityEvent(::ActorEvent event, int data);
100
101 MCAPI void $onLightningHit();
102
103
104 // NOLINTEND
105
106public:
107 // vftables
108 // NOLINTBEGIN
109 MCAPI static void** $vftable();
110 // NOLINTEND
111};
Definition ActorDefinitionGroup.h:37
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition EntityContext.h:17
Definition ActorDefinitionIdentifier.h:15