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
BlockPos
;
14
class
CompoundTag
;
15
class
DataLoadHelper
;
16
class
EntityContext
;
17
struct
ActorDefinitionIdentifier
;
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,
bool
knock,
bool
ignite)
/*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
MCFOLD
void
setBeamTarget(
::BlockPos
const
& target);
59
60
MCAPI
void
setCrystalDamagedCallback(::std::function<
void
(::EnderCrystal&,
::ActorDamageSource
const
&)> onDamaged);
61
// NOLINTEND
62
63
public
:
64
// constructor thunks
65
// NOLINTBEGIN
66
MCAPI
void
* $ctor(
67
::ActorDefinitionGroup
* definitions,
68
::ActorDefinitionIdentifier
const
& definitionName,
69
::EntityContext
& entityContext
70
);
71
// NOLINTEND
72
73
public
:
74
// virtual function thunks
75
// NOLINTBEGIN
76
MCAPI
void
$normalTick();
77
78
MCAPI
bool
$isInvulnerableTo(
::ActorDamageSource
const
& source)
const
;
79
80
MCFOLD
float
$getShadowRadius()
const
;
81
82
MCAPI
void
$addAdditionalSaveData(
::CompoundTag
& tag)
const
;
83
84
MCAPI
void
$readAdditionalSaveData(
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper);
85
86
MCAPI ::ActorHurtResult $_hurt(
::ActorDamageSource
const
& source,
float
damage,
bool
knock,
bool
ignite);
87
88
89
// NOLINTEND
90
91
public
:
92
// vftables
93
// NOLINTBEGIN
94
MCAPI
static
void
** $vftable();
95
// NOLINTEND
96
};
ActorDamageSource
Definition
ActorDamageSource.h:18
ActorDefinitionGroup
Definition
ActorDefinitionGroup.h:37
ActorHurtResult
Definition
ActorHurtResult.h:5
BlockPos
Definition
BlockPos.h:21
CompoundTag
Definition
CompoundTag.h:23
DataLoadHelper
Definition
DataLoadHelper.h:20
EntityContext
Definition
EntityContext.h:17
ActorDefinitionIdentifier
Definition
ActorDefinitionIdentifier.h:15
src
mc
world
actor
monster
EnderCrystal.h
Generated on
for LeviLamina by
1.16.1