Skip to content
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
English
English
简体中文
繁體中文
Auto
Light
Dark
Auto
Light
Dark
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Resources
LeviLamina on GitHub
LeviMC
Home
Projects
Docs
6
LeviLamina
Mod loader for Minecraft Bedrock Edition
LegacyScriptEngine
Runs LLSE script plugins on LeviLamina
lip
General package installer
LeviLauncher
Bedrock launcher for Windows and Android
Be.D.D.
Scripted client input for mod tests
bedboo
Bedrock bots with a mineflayer-compatible API
All repositories on GitHub
Mods
Blog
Community
About
API Reference
On this page
LeviLamina
User Guides
Developer Guides
API Guides
API Reference
Maintainer Guides
Search
Ctrl
K
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
12
class
ActorDefinitionGroup
;
13
class
CompoundTag
;
14
class
DataLoadHelper
;
15
class
EntityContext
;
16
struct
ActorDefinitionIdentifier
;
17
// clang-format on
18
19
class
VillagerBase :
public
::Mob {
20
public
:
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
33
public
:
34
// member variables
35
// NOLINTBEGIN
36
::ll::TypedStorage<1, 1, bool> mChasing;
37
::ll::TypedStorage<1, 1, bool> mWillingToBreed;
38
// NOLINTEND
39
40
public
:
41
// prevent constructor by default
42
VillagerBase();
43
44
public
:
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
56
public
:
57
// member functions
58
// NOLINTBEGIN
59
MCNAPI
VillagerBase
(
60
::ActorDefinitionGroup
* definitions,
61
::ActorDefinitionIdentifier
const
& definitionName,
62
::EntityContext
& entityContext
63
);
64
65
MCNAPI
void
_addParticlesAroundSelf
(::ParticleType particleType);
66
67
MCNAPI
void
consumeLoveFood
();
68
69
MCNAPI
int
getBreedingStackIndex
()
const
;
70
71
MCNAPI
void
stopGoals
();
72
// NOLINTEND
73
74
public
:
75
// constructor thunks
76
// NOLINTBEGIN
77
MCNAPI
void
*
$ctor
(
78
::ActorDefinitionGroup
* definitions,
79
::ActorDefinitionIdentifier
const
& definitionName,
80
::EntityContext
& entityContext
81
);
82
// NOLINTEND
83
84
public
:
85
// virtual function thunks
86
// NOLINTBEGIN
87
MCNAPI
void
$addAdditionalSaveData
(
::CompoundTag
& tag)
const
;
88
89
MCNAPI
void
$readAdditionalSaveData
(
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper);
90
91
MCNAPI
void
$handleEntityEvent
(::ActorEvent event,
int
data);
92
93
MCAPI
void
$onLightningHit();
94
95
96
// NOLINTEND
97
};
ActorDefinitionGroup
Definition
ActorDefinitionGroup.h:26
CompoundTag
Definition
CompoundTag.h:18
DataLoadHelper
Definition
DataLoadHelper.h:20
EntityContext
Definition
EntityContext.h:15
VillagerBase::$readAdditionalSaveData
MCAPI void $readAdditionalSaveData(::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
VillagerBase::consumeLoveFood
MCAPI void consumeLoveFood()
VillagerBase::$ctor
MCAPI void * $ctor(::ActorDefinitionGroup *definitions, ::ActorDefinitionIdentifier const &definitionName, ::EntityContext &entityContext)
VillagerBase::_addParticlesAroundSelf
MCAPI void _addParticlesAroundSelf(::ParticleType particleType)
VillagerBase::$handleEntityEvent
MCAPI void $handleEntityEvent(::ActorEvent event, int data)
VillagerBase::VillagerBase
MCAPI VillagerBase(::ActorDefinitionGroup *definitions, ::ActorDefinitionIdentifier const &definitionName, ::EntityContext &entityContext)
VillagerBase::getBreedingStackIndex
MCAPI int getBreedingStackIndex() const
VillagerBase::stopGoals
MCAPI void stopGoals()
VillagerBase::$addAdditionalSaveData
MCAPI void $addAdditionalSaveData(::CompoundTag &tag) const
ActorDefinitionIdentifier
Definition
ActorDefinitionIdentifier.h:15
src
mc
world
actor
npc
VillagerBase.h
Generated on
for LeviLamina by
1.16.1