LeviLamina
Loading...
Searching...
No Matches
Monster.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/legacy/ActorUniqueID.h"
7
#include "mc/world/actor/Mob.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
ActorDamageSource
;
12
class
ActorDefinitionGroup
;
13
class
ActorHurtResult
;
14
class
BlockPos
;
15
class
CompoundTag
;
16
class
DataLoadHelper
;
17
class
EntityContext
;
18
struct
ActorDefinitionIdentifier
;
19
struct
HurtParameters
;
20
// clang-format on
21
22
class
Monster :
public
::Mob {
23
public
:
24
// member variables
25
// NOLINTBEGIN
26
::ll::TypedStorage<8, 8, ::ActorUniqueID> mLastHurtByMobId;
27
// NOLINTEND
28
29
public
:
30
// prevent constructor by default
31
Monster();
32
33
public
:
34
// virtual functions
35
// NOLINTBEGIN
36
virtual
void
normalTick()
/*override*/
;
37
38
virtual
bool
isDarkEnoughToSpawn()
const
;
39
40
virtual
bool
checkSpawnRules(
bool
fromSpawner)
/*override*/
;
41
42
virtual
float
_getWalkTargetValue(
::BlockPos
const
& pos)
/*override*/
;
43
44
virtual ::ActorHurtResult
45
_hurt(
::ActorDamageSource
const
& source,
float
damage,
::HurtParameters
const
& hurtParameters)
/*override*/
;
46
47
virtual
void
addAdditionalSaveData(
::CompoundTag
& tag)
const
/*override*/
;
48
49
virtual
void
readAdditionalSaveData(
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper)
/*override*/
;
50
// NOLINTEND
51
52
public
:
53
// member functions
54
// NOLINTBEGIN
55
MCAPI Monster(
56
::ActorDefinitionGroup
* definitions,
57
::ActorDefinitionIdentifier
const
& definitionName,
58
::EntityContext
& entityContext
59
);
60
// NOLINTEND
61
62
public
:
63
// constructor thunks
64
// NOLINTBEGIN
65
MCAPI
void
* $ctor(
66
::ActorDefinitionGroup
* definitions,
67
::ActorDefinitionIdentifier
const
& definitionName,
68
::EntityContext
& entityContext
69
);
70
// NOLINTEND
71
72
public
:
73
// virtual function thunks
74
// NOLINTBEGIN
75
MCAPI
void
$normalTick();
76
77
MCAPI
bool
$isDarkEnoughToSpawn()
const
;
78
79
MCFOLD
bool
$checkSpawnRules(
bool
fromSpawner);
80
81
MCAPI
float
$_getWalkTargetValue(
::BlockPos
const
& pos);
82
83
MCAPI ::ActorHurtResult
84
$_hurt(
::ActorDamageSource
const
& source,
float
damage,
::HurtParameters
const
& hurtParameters);
85
86
MCAPI
void
$addAdditionalSaveData(
::CompoundTag
& tag)
const
;
87
88
MCAPI
void
$readAdditionalSaveData(
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper);
89
90
91
// NOLINTEND
92
93
public
:
94
// vftables
95
// NOLINTBEGIN
96
MCAPI
static
void
** $vftable();
97
// NOLINTEND
98
};
ActorDamageSource
Definition
ActorDamageSource.h:18
ActorDefinitionGroup
Definition
ActorDefinitionGroup.h:26
ActorHurtResult
Definition
ActorHurtResult.h:5
BlockPos
Definition
BlockPos.h:17
CompoundTag
Definition
CompoundTag.h:18
DataLoadHelper
Definition
DataLoadHelper.h:20
EntityContext
Definition
EntityContext.h:15
ActorDefinitionIdentifier
Definition
ActorDefinitionIdentifier.h:15
HurtParameters
Definition
HurtParameters.h:8
src
mc
world
actor
monster
Monster.h
Generated on
for LeviLamina by
1.16.1