Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
SpeleothemUtils.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/block/SpeleothemThickness.h"
7
8// auto generated forward declare list
9// clang-format off
10class Block;
11class BlockPos;
12class HashedString;
14// clang-format on
15
16namespace SpeleothemUtils {
17// functions
18// NOLINTBEGIN
19MCNAPI void buildBaseToTipColumn(
20 ::IBlockWorldGenAPI& target,
21 ::BlockPos const& basePos,
22 uchar const direction,
23 int const length,
24 bool const mergeTips,
25 ::HashedString const& speleothemBlock,
26 ::std::function<::Block const&(::Block const&)> const baseBlockTransformer
27);
28
29MCNAPI ::Block const&
30getPlacementBlock(uchar const direction, ::SpeleothemThickness const& thickness, ::HashedString const& speleothemBlock);
31
32MCNAPI float getSpeleothemHeight(float xzDistanceFromCenter, float speleothemRadius, float scale, float bluntness);
33
34MCNAPI bool isBaseOrLava(
35 ::IBlockWorldGenAPI const& target,
36 ::BlockPos const& pos,
37 ::HashedString const& baseBlock,
38 ::std::vector<::std::reference_wrapper<::HashedString const>> const& replaceableBlocks
39);
40
41MCNAPI bool isCircleMostlyEmbeddedInTerrain(::IBlockWorldGenAPI& target, ::BlockPos const& center, int xzRadius);
42
43MCNAPI bool placeBaseBlockIfPossible(
44 ::IBlockWorldGenAPI& target,
45 ::BlockPos const& pos,
46 ::HashedString const& baseBlock,
47 ::std::vector<::std::reference_wrapper<::HashedString const>> const& replaceableBlocks
48);
49// NOLINTEND
50
51} // namespace SpeleothemUtils
Definition BlockPos.h:14
Definition Block.h:42
Definition HashedString.h:5
Definition IBlockWorldGenAPI.h:25