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
AttributeInstanceDelegate.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/attribute/AttributeInstanceHandle.h"
7
8
// auto generated forward declare list
9
// clang-format off
10
class
AttributeBuff
;
11
class
AttributeInstance
;
12
class
AttributeInstanceRef
;
13
struct
AttributeModificationContext
;
14
// clang-format on
15
16
class
AttributeInstanceDelegate
{
17
public
:
18
// member variables
19
// NOLINTBEGIN
20
::ll::TypedStorage<4, 4, ::AttributeInstanceHandle> mAttributeHandle;
21
// NOLINTEND
22
23
public
:
24
// virtual functions
25
// NOLINTBEGIN
26
virtual
~AttributeInstanceDelegate
() =
default
;
27
28
virtual
void
tick(
::AttributeInstance
& mutableInstance,
::AttributeModificationContext
&
context
);
29
30
virtual
void
notify(int64 type,
::AttributeModificationContext
&
context
);
31
32
virtual
bool
willChange(
float
oldValue,
float
newValue,
::AttributeBuff
const
& buff);
33
34
virtual ::std::optional<float> change(
float
oldValue,
float
newValue,
::AttributeBuff
const
& buff);
35
36
virtual
float
getBuffValueWithModifiers(
::AttributeBuff
const
& buff)
const
;
37
// NOLINTEND
38
39
public
:
40
// member functions
41
// NOLINTBEGIN
42
#ifdef LL_PLAT_C
43
MCNAPI ::AttributeInstanceRef _getMutableInstance(
::AttributeModificationContext
&
context
)
const
;
44
#endif
45
// NOLINTEND
46
47
public
:
48
// virtual function thunks
49
// NOLINTBEGIN
50
MCNAPI
void
$tick
(
::AttributeInstance
& mutableInstance,
::AttributeModificationContext
&
context
);
51
52
MCNAPI
void
$notify
(int64 type,
::AttributeModificationContext
&
context
);
53
54
MCNAPI
bool
$willChange
(
float
oldValue,
float
newValue,
::AttributeBuff
const
& buff);
55
56
MCNAPI ::std::optional<float>
$change
(
float
oldValue,
float
newValue,
::AttributeBuff
const
& buff);
57
58
MCNAPI
float
$getBuffValueWithModifiers
(
::AttributeBuff
const
& buff)
const
;
59
60
61
// NOLINTEND
62
63
public
:
64
// vftables
65
// NOLINTBEGIN
66
MCNAPI
static
void
**
$vftable
();
67
// NOLINTEND
68
};
AttributeBuff
Definition
AttributeBuff.h:16
AttributeInstanceDelegate
Definition
AttributeInstanceDelegate.h:16
AttributeInstanceDelegate::$change
MCAPI ::std::optional< float > $change(float oldValue, float newValue, ::AttributeBuff const &buff)
AttributeInstanceDelegate::$getBuffValueWithModifiers
MCAPI float $getBuffValueWithModifiers(::AttributeBuff const &buff) const
AttributeInstanceDelegate::$vftable
static MCAPI void ** $vftable()
AttributeInstanceDelegate::$willChange
MCAPI bool $willChange(float oldValue, float newValue, ::AttributeBuff const &buff)
AttributeInstanceDelegate::$notify
MCAPI void $notify(int64 type, ::AttributeModificationContext &context)
AttributeInstanceDelegate::$tick
MCAPI void $tick(::AttributeInstance &mutableInstance, ::AttributeModificationContext &context)
AttributeInstanceRef
Definition
AttributeInstanceRef.h:13
AttributeInstance
Definition
AttributeInstance.h:17
AttributeModificationContext
Definition
AttributeModificationContext.h:10
context
Definition
context.h:5
src
mc
world
attribute
AttributeInstanceDelegate.h
Generated on
for LeviLamina by
1.16.1