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
IronGolem.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/deps/shared_types/legacy/actor/ActorDamageCause.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
Actor
;
13
class
ActorDamageSource
;
14
class
ActorDefinitionGroup
;
15
class
ActorHurtResult
;
16
class
EntityContext
;
17
struct
ActorDefinitionIdentifier
;
18
struct
HurtEffectsSettings
;
19
// clang-format on
20
21
class
IronGolem :
public
::Mob {
22
public
:
23
// IronGolem inner types define
24
enum class
CrackedAmount : uint {
25
High = 0,
26
Med = 1,
27
Low = 2,
28
None = 3,
29
};
30
31
public
:
32
// prevent constructor by default
33
IronGolem();
34
35
public
:
36
// virtual functions
37
// NOLINTBEGIN
38
virtual ::ActorHurtResult
39
doHurtTarget(::Actor* target, ::SharedTypes::Legacy::ActorDamageCause
const
& cause)
/*override*/
;
40
41
virtual
void
handleEntityEvent(::ActorEvent
id
,
int
data)
/*override*/
;
42
43
virtual
void
die(
::ActorDamageSource
const
& source)
/*override*/
;
44
45
virtual
float
getShadowRadius()
const
/*override*/
;
46
47
virtual
void
48
hurtEffects(
::ActorDamageSource
const
& source,
float
damage,
::HurtEffectsSettings
const
& settings)
/*override*/
;
49
// NOLINTEND
50
51
public
:
52
// member functions
53
// NOLINTBEGIN
54
MCNAPI
IronGolem
(
55
::ActorDefinitionGroup
* definitions,
56
::ActorDefinitionIdentifier
const
& definitionName,
57
::EntityContext
& entityContext
58
);
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 ::ActorHurtResult
$doHurtTarget
(::Actor* target, ::SharedTypes::Legacy::ActorDamageCause
const
& cause);
75
76
MCNAPI
void
$handleEntityEvent
(::ActorEvent
id
,
int
data);
77
78
MCNAPI
void
$die
(
::ActorDamageSource
const
& source);
79
80
MCNAPI
float
$getShadowRadius
()
const
;
81
82
MCNAPI
void
$hurtEffects
(
::ActorDamageSource
const
& source,
float
damage,
::HurtEffectsSettings
const
& settings);
83
84
85
// NOLINTEND
86
87
public
:
88
// vftables
89
// NOLINTBEGIN
90
MCNAPI
static
void
**
$vftable
();
91
// NOLINTEND
92
};
ActorDamageSource
Definition
ActorDamageSource.h:18
ActorDefinitionGroup
Definition
ActorDefinitionGroup.h:26
ActorHurtResult
Definition
ActorHurtResult.h:5
Actor
Definition
Actor.h:116
EntityContext
Definition
EntityContext.h:15
IronGolem::$hurtEffects
MCAPI void $hurtEffects(::ActorDamageSource const &source, float damage, ::HurtEffectsSettings const &settings)
IronGolem::$doHurtTarget
MCAPI::ActorHurtResult $doHurtTarget(::Actor *target, ::SharedTypes::Legacy::ActorDamageCause const &cause)
IronGolem::IronGolem
MCAPI IronGolem(::ActorDefinitionGroup *definitions, ::ActorDefinitionIdentifier const &definitionName, ::EntityContext &entityContext)
IronGolem::$vftable
static MCAPI void ** $vftable()
IronGolem::$handleEntityEvent
MCAPI void $handleEntityEvent(::ActorEvent id, int data)
IronGolem::$ctor
MCAPI void * $ctor(::ActorDefinitionGroup *definitions, ::ActorDefinitionIdentifier const &definitionName, ::EntityContext &entityContext)
IronGolem::$getShadowRadius
MCAPI float $getShadowRadius() const
IronGolem::$die
MCAPI void $die(::ActorDamageSource const &source)
ActorDefinitionIdentifier
Definition
ActorDefinitionIdentifier.h:15
HurtEffectsSettings
Definition
HurtEffectsSettings.h:8
src
mc
world
actor
animal
IronGolem.h
Generated on
for LeviLamina by
1.16.1