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
Feature.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/legacy/ActorUniqueID.h"
7
#include "mc/world/level/levelgen/feature/IFeature.h"
8
9
// auto generated forward declare list
10
// clang-format off
11
class
Block
;
12
class
BlockPos
;
13
class
BlockSource
;
14
class
Random
;
15
class
WorldChangeTransaction
;
16
// clang-format on
17
18
class
Feature
:
public
::IFeature
{
19
public
:
20
// member variables
21
// NOLINTBEGIN
22
::ll::TypedStorage<8, 8, ::ActorUniqueID> mPlacerID;
23
::ll::TypedStorage<8, 8, ::WorldChangeTransaction*> mTransaction;
24
// NOLINTEND
25
26
public
:
27
// virtual functions
28
// NOLINTBEGIN
29
virtual
~Feature
()
/*override*/
=
default
;
30
31
virtual
bool
place(
::BlockSource
& region,
::BlockPos
const
& pos,
::Random
& random)
const
= 0;
32
33
virtual ::std::optional<::BlockPos> place(
::IFeature::PlacementContext
const
&
context
)
const
/*override*/
;
34
// NOLINTEND
35
36
public
:
37
// member functions
38
// NOLINTBEGIN
39
MCNAPI
bool
_placeBlock
(
::BlockSource
& region,
::BlockPos
const
& pos,
::Block
const
& block)
const
;
40
// NOLINTEND
41
42
public
:
43
// virtual function thunks
44
// NOLINTBEGIN
45
MCAPI ::std::optional<::BlockPos> $place(
::IFeature::PlacementContext
const
&
context
)
const
;
46
47
48
// NOLINTEND
49
50
public
:
51
// vftables
52
// NOLINTBEGIN
53
MCNAPI
static
void
**
$vftable
();
54
// NOLINTEND
55
};
BlockPos
Definition
BlockPos.h:14
BlockSource
Definition
BlockSource.h:72
Block
Definition
Block.h:42
Feature
Definition
Feature.h:18
Feature::_placeBlock
MCAPI bool _placeBlock(::BlockSource ®ion, ::BlockPos const &pos, ::Block const &block) const
Feature::$vftable
static MCAPI void ** $vftable()
IFeature
Definition
IFeature.h:18
Random
Definition
Random.h:10
WorldChangeTransaction
Definition
WorldChangeTransaction.h:14
IFeature::PlacementContext
Definition
IFeature.h:26
context
Definition
context.h:5
src
mc
world
level
levelgen
feature
Feature.h
Generated on
for LeviLamina by
1.16.1