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