LeviLamina
Loading...
Searching...
No Matches
FeatureHelper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/levelgen/feature/helpers/feature_helper/PlaceFeatureResult.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockDescriptor;
12class BlockPos;
13class BlockSource;
16class IFeature;
18class Random;
19class RenderParams;
21// clang-format on
22
23namespace FeatureHelper {
24// functions
25// NOLINTBEGIN
26MCAPI ::gsl::not_null<::Block const*> makeCompareBlock(::Block const& block);
27
28MCAPI ::RenderParams
29makeFeatureRenderParams(::BlockSource& source, ::BlockPos const& pos, ::MolangVariableMap& molangVariables);
30
31MCAPI bool passesAllowList(
32 ::IBlockWorldGenAPI const& target,
33 ::BlockPos const& pos,
34 ::std::vector<::BlockDescriptor> const& allowList
35);
36
37MCAPI ::std::optional<::BlockPos> placeBlock(::IBlockWorldGenAPI& target, ::BlockPos const& pos, ::Block const& block);
38
39MCAPI ::FeatureHelper::PlaceFeatureResult placeFeature(
40 ::IFeature const& feature,
41 ::BlockSource& source,
42 ::BlockPos const& pos,
43 ::Random& random,
45);
46
47MCAPI ::FeatureHelper::PlaceFeatureResult
48placeFeatureRule(::BiomeDecorationFeature const& rule, ::BlockSource& source, ::BlockPos const& pos, ::Random& random);
49// NOLINTEND
50
51} // namespace FeatureHelper
Definition BlockDescriptor.h:19
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition Block.h:36
Definition FeaturePlacementFailureLogProxy.h:10
Definition IBlockWorldGenAPI.h:25
Definition IFeature.h:13
Definition MolangVariableMap.h:15
Definition Random.h:16
Definition RenderParams.h:30
Definition BiomeDecorationFeature.h:15