Skip to content
LeviMC
English
AutoLightDark
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;
15class IFeature;
17class Random;
18class RenderParams;
20// clang-format on
21
22namespace FeatureHelper {
23// functions
24// NOLINTBEGIN
25MCNAPI ::gsl::not_null<::Block const*> makeCompareBlock(::Block const& block);
26
27MCNAPI ::RenderParams
28makeFeatureRenderParams(::BlockSource& source, ::BlockPos const& pos, ::MolangVariableMap& molangVariables);
29
30MCNAPI bool passesAllowList(::Block const& block, ::std::vector<::BlockDescriptor> const& allowList);
31
32MCNAPI ::FeatureHelper::PlaceFeatureResult placeFeature(
33 ::IFeature const& feature,
34 ::BlockSource& source,
35 ::BlockPos const& pos,
36 ::Random& random,
37 ::FeaturePlacementFailureLogProxy logger
38);
39
40MCNAPI ::FeatureHelper::PlaceFeatureResult
41placeFeatureRule(::BiomeDecorationFeature const& rule, ::BlockSource& source, ::BlockPos const& pos, ::Random& random);
42// NOLINTEND
43
44} // namespace FeatureHelper
Definition BlockDescriptor.h:21
Definition BlockPos.h:14
Definition BlockSource.h:72
Definition Block.h:42
Definition FeaturePlacementFailureLogProxy.h:11
Definition IFeature.h:18
Definition MolangVariableMap.h:17
Definition Random.h:10
Definition RenderParams.h:29
Definition BiomeDecorationFeature.h:15