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 eventId, int data) /*override*/;
52
53 virtual void onLightningHit() /*override*/;
54
55 virtual ~VillagerBase() /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI VillagerBase(
62 ::ActorDefinitionGroup* definitions,
63 ::ActorDefinitionIdentifier const& definitionName,
64 ::EntityContext& entityContext
65 );
66
67 MCAPI void _addParticlesAroundSelf(::ParticleType particleType);
68
69 MCAPI void consumeLoveFood();
70
71 MCAPI int getBreedingStackIndex() const;
72 // NOLINTEND
73
74public:
75 // constructor thunks
76 // NOLINTBEGIN
77 MCAPI void* $ctor(
78 ::ActorDefinitionGroup* definitions,
79 ::ActorDefinitionIdentifier const& definitionName,
80 ::EntityContext& entityContext
81 );
82 // NOLINTEND
83
84public:
85 // destructor thunk
86 // NOLINTBEGIN
87 MCFOLD void $dtor();
88 // NOLINTEND
89
90public:
91 // virtual function thunks
92 // NOLINTBEGIN
93 MCAPI void $addAdditionalSaveData(::CompoundTag& tag) const;
94
95 MCAPI void $readAdditionalSaveData(::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
96
97 MCAPI void $handleEntityEvent(::ActorEvent eventId, int data);
98
99 MCAPI void $onLightningHit();
100
101
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCAPI static void** $vftable();
108 // NOLINTEND
109};
Definition ActorDefinitionGroup.h:35
Definition CompoundTag.h:23
Definition DataLoadHelper.h:20
Definition EntityContext.h:16
Definition ActorDefinitionIdentifier.h:15