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
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
MCNAPI
EnderCrystal
(
53
::ActorDefinitionGroup
* definitions,
54
::ActorDefinitionIdentifier
const
& definitionName,
55
::EntityContext
& entityContext
56
);
57
58
MCNAPI
void
setCrystalDamagedCallback
(::std::function<
void
(::EnderCrystal&,
::ActorDamageSource
const
&)> onDamaged);
59
// NOLINTEND
60
61
public
:
62
// constructor thunks
63
// NOLINTBEGIN
64
MCNAPI
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
MCNAPI
void
$normalTick
();
75
76
MCNAPI
bool
$isInvulnerableTo
(
::ActorDamageSource
const
& source)
const
;
77
78
MCNAPI
float
$getShadowRadius
()
const
;
79
80
MCNAPI
void
$addAdditionalSaveData
(
::CompoundTag
& tag)
const
;
81
82
MCNAPI
void
$readAdditionalSaveData
(
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper);
83
84
MCNAPI ::ActorHurtResult
85
$_hurt
(
::ActorDamageSource
const
& source,
float
damage,
::HurtParameters
const
& hurtParameters);
86
87
88
// NOLINTEND
89
90
public
:
91
// vftables
92
// NOLINTBEGIN
93
MCNAPI
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
EnderCrystal::$ctor
MCAPI void * $ctor(::ActorDefinitionGroup *definitions, ::ActorDefinitionIdentifier const &definitionName, ::EntityContext &entityContext)
EnderCrystal::$normalTick
MCAPI void $normalTick()
EnderCrystal::$addAdditionalSaveData
MCAPI void $addAdditionalSaveData(::CompoundTag &tag) const
EnderCrystal::EnderCrystal
MCAPI EnderCrystal(::ActorDefinitionGroup *definitions, ::ActorDefinitionIdentifier const &definitionName, ::EntityContext &entityContext)
EnderCrystal::$isInvulnerableTo
MCAPI bool $isInvulnerableTo(::ActorDamageSource const &source) const
EnderCrystal::$_hurt
MCAPI::ActorHurtResult $_hurt(::ActorDamageSource const &source, float damage, ::HurtParameters const &hurtParameters)
EnderCrystal::setCrystalDamagedCallback
MCAPI void setCrystalDamagedCallback(::std::function< void(::EnderCrystal &, ::ActorDamageSource const &)> onDamaged)
EnderCrystal::$readAdditionalSaveData
MCAPI void $readAdditionalSaveData(::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
EnderCrystal::$vftable
static MCAPI void ** $vftable()
EnderCrystal::$getShadowRadius
MCAPI float $getShadowRadius() const
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