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
MobSpawnerBlockActor.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/world/level/block/actor/VanillaBlockActor.h"
7
8
// auto generated forward declare list
9
// clang-format off
10
class
Actor
;
11
class
BaseMobSpawner
;
12
class
BlockActorDataPacket
;
13
class
BlockPos
;
14
class
BlockSource
;
15
class
CompoundTag
;
16
class
DataLoadHelper
;
17
class
ILevel
;
18
class
SaveContext
;
19
struct
ActorDefinitionIdentifier
;
20
// clang-format on
21
22
class
MobSpawnerBlockActor :
public
::VanillaBlockActor {
23
public
:
24
// member variables
25
// NOLINTBEGIN
26
::ll::TypedStorage<8, 8, ::std::unique_ptr<::BaseMobSpawner>> mSpawner;
27
// NOLINTEND
28
29
public
:
30
// prevent constructor by default
31
MobSpawnerBlockActor();
32
33
public
:
34
// virtual functions
35
// NOLINTBEGIN
36
virtual
void
load(
::ILevel
& level,
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper)
/*override*/
;
37
38
virtual
bool
save(
::CompoundTag
& tag,
::SaveContext
const
& saveContext)
const
/*override*/
;
39
40
virtual
void
tick(
::BlockSource
& region)
/*override*/
;
41
42
virtual
void
onRemoved(
::BlockSource
&)
/*override*/
;
43
44
virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource
&)
/*override*/
;
45
46
virtual
void
_onUpdatePacket(
::CompoundTag
const
& data,
::BlockSource
& region)
/*override*/
;
47
// NOLINTEND
48
49
public
:
50
// member functions
51
// NOLINTBEGIN
52
MCNAPI
explicit
MobSpawnerBlockActor
(
::BlockPos
const
& pos);
53
54
MCAPI
void
setMob(
::BlockSource
& region,
::ActorDefinitionIdentifier
const
& identifier,
::Actor
* usingActor);
55
// NOLINTEND
56
57
public
:
58
// constructor thunks
59
// NOLINTBEGIN
60
MCNAPI
void
*
$ctor
(
::BlockPos
const
& pos);
61
// NOLINTEND
62
63
public
:
64
// virtual function thunks
65
// NOLINTBEGIN
66
MCNAPI
void
$load
(
::ILevel
& level,
::CompoundTag
const
& tag,
::DataLoadHelper
& dataLoadHelper);
67
68
MCNAPI
bool
$save
(
::CompoundTag
& tag,
::SaveContext
const
& saveContext)
const
;
69
70
MCNAPI
void
$tick
(
::BlockSource
& region);
71
72
MCNAPI
void
$onRemoved
(
::BlockSource
&);
73
74
MCNAPI ::std::unique_ptr<::BlockActorDataPacket>
$_getUpdatePacket
(
::BlockSource
&);
75
76
MCNAPI
void
$_onUpdatePacket
(
::CompoundTag
const
& data,
::BlockSource
& region);
77
78
79
// NOLINTEND
80
81
public
:
82
// vftables
83
// NOLINTBEGIN
84
MCNAPI
static
void
**
$vftableForBlockActor
();
85
86
MCNAPI
static
void
**
$vftableForIVanillaTickBlockActorComponent
();
87
88
MCNAPI
static
void
**
$vftableForIVanillaMainBlockActorComponent
();
89
90
MCNAPI
static
void
**
$vftableForIVanillaRenderBlockActorComponent
();
91
// NOLINTEND
92
};
Actor
Definition
Actor.h:116
BaseMobSpawner
Definition
BaseMobSpawner.h:19
BlockActorDataPacket
Definition
BlockActorDataPacket.h:19
BlockPos
Definition
BlockPos.h:14
BlockSource
Definition
BlockSource.h:72
CompoundTag
Definition
CompoundTag.h:18
DataLoadHelper
Definition
DataLoadHelper.h:20
ILevel
Definition
ILevel.h:223
MobSpawnerBlockActor::$ctor
MCAPI void * $ctor(::BlockPos const &pos)
MobSpawnerBlockActor::MobSpawnerBlockActor
MCAPI MobSpawnerBlockActor(::BlockPos const &pos)
MobSpawnerBlockActor::$_onUpdatePacket
MCAPI void $_onUpdatePacket(::CompoundTag const &data, ::BlockSource ®ion)
MobSpawnerBlockActor::$load
MCAPI void $load(::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MobSpawnerBlockActor::$save
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
MobSpawnerBlockActor::$vftableForIVanillaRenderBlockActorComponent
static MCAPI void ** $vftableForIVanillaRenderBlockActorComponent()
MobSpawnerBlockActor::$tick
MCAPI void $tick(::BlockSource ®ion)
MobSpawnerBlockActor::$onRemoved
MCAPI void $onRemoved(::BlockSource &)
MobSpawnerBlockActor::$_getUpdatePacket
MCAPI ::std::unique_ptr<::BlockActorDataPacket > $_getUpdatePacket(::BlockSource &)
MobSpawnerBlockActor::$vftableForBlockActor
static MCAPI void ** $vftableForBlockActor()
MobSpawnerBlockActor::$vftableForIVanillaTickBlockActorComponent
static MCAPI void ** $vftableForIVanillaTickBlockActorComponent()
MobSpawnerBlockActor::$vftableForIVanillaMainBlockActorComponent
static MCAPI void ** $vftableForIVanillaMainBlockActorComponent()
SaveContext
Definition
SaveContext.h:5
ActorDefinitionIdentifier
Definition
ActorDefinitionIdentifier.h:15
src
mc
world
level
block
actor
MobSpawnerBlockActor.h
Generated on
for LeviLamina by
1.16.1