Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
LeveledConstraint.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/util/Rotation.h"
7#include "mc/world/level/levelgen/structure/constraints/IStructureConstraint.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
14// clang-format on
15
16class LeveledConstraint : public ::IStructureConstraint {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 4, int> mMaxSteepness;
21 ::ll::TypedStorage<8, 24, ::std::vector<::BlockPos>> mFoundationOffsets;
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 LeveledConstraint();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual ~LeveledConstraint() /*override*/ = default;
32
33 virtual bool isSatisfied(
34 ::IBlockWorldGenAPI const& target,
35 ::BlockPos const& structurePos,
36 ::Rotation const& structureRot,
37 ::BlockPos const& centeringOffset
38 ) const /*override*/;
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCNAPI LeveledConstraint(::StructureTemplate& structure, int groundLevel);
45 // NOLINTEND
46
47public:
48 // constructor thunks
49 // NOLINTBEGIN
50 MCNAPI void* $ctor(::StructureTemplate& structure, int groundLevel);
51 // NOLINTEND
52
53public:
54 // virtual function thunks
55 // NOLINTBEGIN
56 MCNAPI bool $isSatisfied(
57 ::IBlockWorldGenAPI const& target,
58 ::BlockPos const& structurePos,
59 ::Rotation const& structureRot,
60 ::BlockPos const& centeringOffset
61 ) const;
62
63
64 // NOLINTEND
65};
Definition BlockPos.h:14
Definition IBlockWorldGenAPI.h:25
Definition IStructureConstraint.h:14
MCAPI bool $isSatisfied(::IBlockWorldGenAPI const &target, ::BlockPos const &structurePos, ::Rotation const &structureRot, ::BlockPos const &centeringOffset) const
MCAPI LeveledConstraint(::StructureTemplate &structure, int groundLevel)
MCAPI void * $ctor(::StructureTemplate &structure, int groundLevel)
Definition StructureTemplate.h:35