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 bool isEmptyBlock(::IBlockWorldGenAPI const& target, ::BlockPos const& pos);
27
28MCAPI ::RenderParams
29makeFeatureRenderParams(::BlockSource& source, ::BlockPos const& pos, ::MolangVariableMap& molangVariables);
30
31MCAPI bool passesAllowList(::Block const& block, ::std::vector<::BlockDescriptor> const& allowList);
32
33MCAPI bool passesAllowList(
34 ::IBlockWorldGenAPI const& target,
35 ::BlockPos const& pos,
36 ::std::vector<::BlockDescriptor> const& allowList
37);
38
39MCAPI ::std::optional<::BlockPos> placeBlock(::IBlockWorldGenAPI& target, ::BlockPos const& pos, ::Block const& block);
40
41MCAPI ::FeatureHelper::PlaceFeatureResult placeFeature(
42 ::IFeature const& feature,
43 ::BlockSource& source,
44 ::BlockPos const& pos,
45 ::Random& random,
46 ::FeaturePlacementFailureLogProxy logger
47);
48
49MCAPI ::FeatureHelper::PlaceFeatureResult
50placeFeatureRule(::BiomeDecorationFeature const& rule, ::BlockSource& source, ::BlockPos const& pos, ::Random& random);
51// NOLINTEND
52
53} // namespace FeatureHelper
Definition BlockDescriptor.h:21
Definition BlockPos.h:21
Definition BlockSource.h:73
Definition Block.h:69
Definition FeaturePlacementFailureLogProxy.h:11
Definition IBlockWorldGenAPI.h:25
Definition IFeature.h:19
Definition MolangVariableMap.h:18
Definition Random.h:10
Definition RenderParams.h:30
Definition BiomeDecorationFeature.h:15