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