LeviLamina
Loading...
Searching...
No Matches
SnapToSurfaceFeature.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;
12// clang-format on
13
15public:
16 // SnapToSurfaceFeature inner types define
17 enum class Surface : int {
18 Ceiling = 0,
19 Floor = 1,
20 RandomHorizontal = 2,
21 };
22
23public:
24 // member variables
25 // NOLINTBEGIN
32 // NOLINTEND
33
34public:
35 // prevent constructor by default
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 0
44 virtual ~SnapToSurfaceFeature() /*override*/ = default;
45
46 // vIndex: 1
47 virtual ::std::optional<::BlockPos> place(::IFeature::PlacementContext const& context) const /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCNAPI ::std::optional<::BlockPos> _findSnapPos(
54 ::IBlockWorldGenAPI& target,
55 ::BlockPos const& pos,
56 ::SnapToSurfaceFeature::Surface targetSurface
57 ) const;
58 // NOLINTEND
59
60public:
61 // virtual function thunks
62 // NOLINTBEGIN
63 MCNAPI ::std::optional<::BlockPos> $place(::IFeature::PlacementContext const& context) const;
64 // NOLINTEND
65
66public:
67 // vftables
68 // NOLINTBEGIN
69 MCNAPI static void** $vftable();
70 // NOLINTEND
71};
Definition BlockPos.h:18
Definition IBlockWorldGenAPI.h:25
Definition IFeature.h:13
Definition SnapToSurfaceFeature.h:14
MCAPI ::std::optional<::BlockPos > _findSnapPos(::IBlockWorldGenAPI &target, ::BlockPos const &pos, ::SnapToSurfaceFeature::Surface targetSurface) const
MCAPI ::std::optional<::BlockPos > $place(::IFeature::PlacementContext const &context) const
static MCAPI void ** $vftable()
Definition IFeature.h:21
Definition context.h:5
Definition Alias.h:14