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
MobSpawnUtils.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/deps/game_refs/OwnerPtr.h"
7
#include "mc/world/level/biome/mob_spawn_utils/SurfaceDetectionType.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
ActorDefinitionGroup
;
12
class
ActorFactory
;
13
class
BlockPos
;
14
class
BlockSource
;
15
class
EntityContext
;
16
class
Level
;
17
class
Mob
;
18
class
Vec2
;
19
class
Vec3
;
20
struct
ActorDefinitionIdentifier
;
21
// clang-format on
22
23
namespace
MobSpawnUtils {
24
// functions
25
// NOLINTBEGIN
26
MCNAPI
void
onMobSpawned(::BlockPos
const
& pos, ::Level& level, ::Mob& mob);
27
28
MCNAPI ::OwnerPtr<::EntityContext> spawnIfSummonable(
29
::ActorDefinitionIdentifier
const
& actorIdentifier,
30
::ActorDefinitionGroup& actorDefinitions,
31
::ActorFactory& actorFactory,
32
::Vec3
const
& position,
33
::Vec2
const
& rotation
34
);
35
36
MCAPI ::Mob* trySpawnMob(
37
::BlockSource& region,
38
::ActorDefinitionIdentifier
const
& actorDefinition,
39
::BlockPos start,
40
int
spawnAttempts,
41
int
spawnRangeXZ,
42
int
spawnRangeY,
43
::std::function<
bool
(::BlockPos)>
const
& isGoodSpawnPosition,
44
::MobSpawnUtils::SurfaceDetectionType surfaceDetectionType
45
);
46
// NOLINTEND
47
48
}
// namespace MobSpawnUtils
ActorDefinitionGroup
Definition
ActorDefinitionGroup.h:26
ActorFactory
Definition
ActorFactory.h:33
BlockPos
Definition
BlockPos.h:14
BlockSource
Definition
BlockSource.h:72
EntityContext
Definition
EntityContext.h:15
Level
Definition
Level.h:255
Mob
Definition
Mob.h:58
Vec2
Definition
Vec2.h:5
Vec3
Definition
Vec3.h:10
ActorDefinitionIdentifier
Definition
ActorDefinitionIdentifier.h:15
src
mc
world
level
biome
mob_spawn_utils
MobSpawnUtils.h
Generated on
for LeviLamina by
1.16.1