LeviLamina
Loading...
Searching...
No Matches
VegetationPatchFeature.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/levelgen/feature/IFeature.h"
7
8// auto generated forward declare list
9// clang-format off
10class BlockPos;
12class Random;
13// clang-format on
14
16public:
17 // VegetationPatchFeature inner types define
18 enum class Surface : int {
19 Ceiling = 0,
20 Floor = 1,
21 };
22
23public:
24 // member variables
25 // NOLINTBEGIN
37 // NOLINTEND
38
39public:
40 // prevent constructor by default
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 // vIndex: 0
49 virtual ~VegetationPatchFeature() /*override*/ = default;
50
51 // vIndex: 1
52 virtual ::std::optional<::BlockPos> place(::IFeature::PlacementContext const& context) const /*override*/;
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58 MCAPI bool _isExposedDirection(::IBlockWorldGenAPI& target, ::BlockPos const& pos, uchar direction) const;
59
60 MCAPI bool _placeGround(
61 ::IBlockWorldGenAPI& target,
62 ::Random& random,
63 ::BlockPos const& posAtSurface,
64 uchar towardsSurface
65 ) const;
66
67 MCAPI ::std::vector<::BlockPos> _placeGroundPatch(
68 ::IBlockWorldGenAPI& target,
69 ::Random& random,
70 ::BlockPos const& origin,
71 int xRadius,
72 int zRadius
73 ) const;
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
79 MCAPI ::std::optional<::BlockPos> $place(::IFeature::PlacementContext const& context) const;
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCNAPI static void** $vftable();
86 // NOLINTEND
87};
Definition BlockPos.h:18
Definition IBlockWorldGenAPI.h:25
Definition IFeature.h:13
Definition Random.h:11
Definition VegetationPatchFeature.h:15
static MCAPI void ** $vftable()
Definition IFeature.h:21
Definition context.h:5
Definition Alias.h:14