LeviLamina
Loading...
Searching...
No Matches
ExperienceOrb.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/actor/Actor.h"
7
#include "mc/world/actor/ActorInitializationMethod.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
ActorDamageSource
;
12
class
ActorDefinitionGroup
;
13
class
BlockSource
;
14
class
CompoundTag
;
15
class
DataLoadHelper
;
16
class
EntityContext
;
17
class
Level
;
18
class
Player
;
19
class
Vec3
;
20
struct
ActorDefinitionIdentifier
;
21
struct
VariantParameterList
;
22
// clang-format on
23
24
class
ExperienceOrb
:
public
::Actor
{
25
public
:
26
// ExperienceOrb inner types define
27
enum class
DropType : uchar {
28
NoType = 0,
29
FromBlock = 1,
30
FromMob = 2,
31
FromPlayer = 3,
32
};
33
34
public
:
35
// member variables
36
// NOLINTBEGIN
37
::ll::UntypedStorage<8, 8>
mUnk639d93;
38
::ll::UntypedStorage<4, 4>
mUnk4bc834;
39
::ll::UntypedStorage<4, 4>
mUnk853b57;
40
::ll::UntypedStorage<4, 4>
mUnk6573f5;
41
::ll::UntypedStorage<4, 4>
mUnkdc8fbb;
42
// NOLINTEND
43
44
public
:
45
// prevent constructor by default
46
ExperienceOrb
& operator=(
ExperienceOrb
const
&);
47
ExperienceOrb
(
ExperienceOrb
const
&);
48
ExperienceOrb
();
49
50
public
:
51
// virtual functions
52
// NOLINTBEGIN
53
// vIndex: 2
54
virtual
void
reloadHardcoded(::ActorInitializationMethod method,
::VariantParameterList
const
& params)
/*override*/
;
55
56
// vIndex: 137
57
virtual
void
addAdditionalSaveData(
::CompoundTag
& tag)
const
/*override*/
;
58
59
// vIndex: 136
60
virtual
void
readAdditionalSaveData(
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper)
/*override*/
;
61
62
// vIndex: 39
63
virtual
void
playerTouch(
::Player
& player)
/*override*/
;
64
65
// vIndex: 35
66
virtual
float
getShadowRadius()
const
/*override*/
;
67
68
// vIndex: 64
69
virtual
bool
isInvulnerableTo(
::ActorDamageSource
const
& source)
const
/*override*/
;
70
71
// vIndex: 135
72
virtual
bool
_hurt(
::ActorDamageSource
const
&,
float
damage,
bool
,
bool
)
/*override*/
;
73
74
// vIndex: 132
75
virtual
void
doWaterSplashEffect()
/*override*/
;
76
77
// vIndex: 8
78
virtual
~ExperienceOrb
()
/*override*/
=
default
;
79
// NOLINTEND
80
81
public
:
82
// member functions
83
// NOLINTBEGIN
84
MCAPI
ExperienceOrb
(
85
::ActorDefinitionGroup
* definitions,
86
::ActorDefinitionIdentifier
const
& definitionName,
87
::EntityContext
& entityContext
88
);
89
90
MCAPI
void
_handleMending(
::Player
& player);
91
92
MCAPI
void
_tryMergeExistingOrbs();
93
94
MCAPI
int
getValue()
const
;
95
96
MCAPI
void
postNormalTick();
97
// NOLINTEND
98
99
public
:
100
// static functions
101
// NOLINTBEGIN
102
MCAPI
static
void
_spawnOrb(
::BlockSource
& region,
::Level
& level,
::Vec3
const
& pos,
int
orbXPValue);
103
104
MCAPI
static
bool
_tryMergeIntoExistingOrbs(
::BlockSource
& region,
::Vec3
const
& pos,
int
xpValue);
105
106
MCAPI
static
void
spawnOrbs(
107
::BlockSource
& region,
108
::Vec3
const
& pos,
109
int
xpValue,
110
::ExperienceOrb::DropType dropType,
111
::Player
* owner
112
);
113
// NOLINTEND
114
115
public
:
116
// constructor thunks
117
// NOLINTBEGIN
118
MCAPI
void
* $ctor(
119
::ActorDefinitionGroup
* definitions,
120
::ActorDefinitionIdentifier
const
& definitionName,
121
::EntityContext
& entityContext
122
);
123
// NOLINTEND
124
125
public
:
126
// destructor thunk
127
// NOLINTBEGIN
128
129
// NOLINTEND
130
131
public
:
132
// virtual function thunks
133
// NOLINTBEGIN
134
MCAPI
void
$reloadHardcoded(::ActorInitializationMethod method,
::VariantParameterList
const
& params);
135
136
MCAPI
void
$addAdditionalSaveData(
::CompoundTag
& tag)
const
;
137
138
MCAPI
void
$readAdditionalSaveData(
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper);
139
140
MCAPI
void
$playerTouch(
::Player
& player);
141
142
MCFOLD
float
$getShadowRadius()
const
;
143
144
MCAPI
bool
$isInvulnerableTo(
::ActorDamageSource
const
& source)
const
;
145
146
MCAPI
bool
$_hurt(
::ActorDamageSource
const
&,
float
damage,
bool
,
bool
);
147
148
MCFOLD
void
$doWaterSplashEffect();
149
// NOLINTEND
150
151
public
:
152
// vftables
153
// NOLINTBEGIN
154
MCAPI
static
void
** $vftable();
155
// NOLINTEND
156
};
ActorDamageSource
Definition
ActorDamageSource.h:18
ActorDefinitionGroup
Definition
ActorDefinitionGroup.h:27
Actor
Definition
Actor.h:104
BlockSource
Definition
BlockSource.h:67
CompoundTag
Definition
CompoundTag.h:13
DataLoadHelper
Definition
DataLoadHelper.h:20
EntityContext
Definition
EntityContext.h:16
ExperienceOrb
Definition
ExperienceOrb.h:24
Level
Definition
Level.h:234
Player
Definition
Player.h:119
Vec3
Definition
Vec3.h:10
ActorDefinitionIdentifier
Definition
ActorDefinitionIdentifier.h:13
VariantParameterList
Definition
VariantParameterList.h:5
ll::UntypedStorage
Definition
Alias.h:14
src
mc
world
actor
item
ExperienceOrb.h
Generated on Sat Apr 26 2025 05:56:05 for LeviLamina by
1.12.0