LeviLamina
Loading...
Searching...
No Matches
IFeature.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8class BlockPos;
10class SemVersion;
11// clang-format on
12
13class IFeature {
14public:
15 // IFeature inner types declare
16 // clang-format off
17 struct PlacementContext;
18 // clang-format on
19
20 // IFeature inner types define
22 public:
23 // member variables
24 // NOLINTBEGIN
30 // NOLINTEND
31
32 public:
33 // prevent constructor by default
34 PlacementContext& operator=(PlacementContext const&);
37 };
38
39public:
40 // member variables
41 // NOLINTBEGIN
42 ::ll::TypedStorage<1, 1, bool> mInternal;
43 ::ll::TypedStorage<1, 1, bool> mCanUseInternalFeature;
44 // NOLINTEND
45
46public:
47 // virtual functions
48 // NOLINTBEGIN
49 // vIndex: 0
50 virtual ~IFeature();
51
52 // vIndex: 1
53 virtual ::std::optional<::BlockPos> place(::IFeature::PlacementContext const&) const = 0;
54
55 // vIndex: 2
56 virtual bool isValidPlacement(::std::string const& pass);
57
58 // vIndex: 3
59 virtual void upgradeFormat(::SemVersion const&);
60 // NOLINTEND
61
62public:
63 // static functions
64 // NOLINTBEGIN
65 MCAPI static bool
66 isExposedTo(::IBlockWorldGenAPI const& target, ::BlockPos const& candidatePos, ::BlockDescriptor const& exposedTo);
67 // NOLINTEND
68
69public:
70 // static variables
71 // NOLINTBEGIN
72 MCAPI static ::std::string_view const& DEFAULT_NOT_SUPPORTED_PASS();
73 // NOLINTEND
74
75public:
76 // destructor thunk
77 // NOLINTBEGIN
78 MCFOLD void $dtor();
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84 MCAPI bool $isValidPlacement(::std::string const& pass);
85
86 MCFOLD void $upgradeFormat(::SemVersion const&);
87 // NOLINTEND
88
89public:
90 // vftables
91 // NOLINTBEGIN
92 MCAPI static void** $vftable();
93 // NOLINTEND
94};
Definition BlockDescriptor.h:19
Definition BlockPos.h:18
Definition IBlockWorldGenAPI.h:25
Definition IFeature.h:13
Definition SemVersion.h:15
Definition IFeature.h:21
Definition Alias.h:14