LeviLamina
Loading...
Searching...
No Matches
PlaceCommand.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/ServerCommand.h"
7#include "mc/world/level/levelgen/v2/LiquidSettings.h"
8
9// auto generated forward declare list
10// clang-format off
11class BlockPos;
12class BoundingBox;
13class CommandOrigin;
14class CommandOutput;
15class CommandPosition;
16class CommandRegistry;
17class Dimension;
18class Experiments;
19class HashedString;
20class IFeature;
22// clang-format on
23
25public:
26 // PlaceCommand inner types define
27 enum class PlaceAction : int {
28 Structure = 0,
29 Jigsaw = 1,
30 Feature = 2,
31 FeatureRule = 3,
32 };
33
34public:
35 // member variables
36 // NOLINTBEGIN
49 // NOLINTEND
50
51public:
52 // prevent constructor by default
53 PlaceCommand& operator=(PlaceCommand const&);
56
57public:
58 // virtual functions
59 // NOLINTBEGIN
60 // vIndex: 2
61 virtual void execute(::CommandOrigin const& origin, ::CommandOutput& output) const /*override*/;
62
63 // vIndex: 0
64 virtual ~PlaceCommand() /*override*/ = default;
65 // NOLINTEND
66
67public:
68 // member functions
69 // NOLINTBEGIN
70 MCAPI void _placeFeature(
71 ::IFeature const* feature,
72 ::CommandPosition const& pos,
73 ::CommandOrigin const& origin,
74 ::CommandOutput& output
75 ) const;
76
77 MCAPI void _placeFeatureRule(
78 ::std::string const& featureRuleName,
79 ::CommandPosition const& pos,
80 ::CommandOrigin const& origin,
81 ::CommandOutput& output
82 ) const;
83
84 MCAPI void _placeJigsaw(
85 ::std::string const& pool,
86 ::std::string const& target,
87 schar maxDepth,
88 ::CommandPosition const& pos,
89 bool keepJigsaws,
90 bool includeEntities,
91 ::br::worldgen::LiquidSettings liquidSettings,
92 ::CommandOrigin const& origin,
93 ::CommandOutput& output
94 ) const;
95
96 MCAPI void _placeStructure(
97 ::std::string const& id,
98 ::CommandPosition const& pos,
99 bool ignoreStartHeight,
100 bool keepJigsaws,
101 bool includeEntities,
102 ::br::worldgen::LiquidSettings liquidSettings,
103 ::CommandOrigin const& origin,
104 ::CommandOutput& output
105 ) const;
106 // NOLINTEND
107
108public:
109 // static functions
110 // NOLINTBEGIN
111 MCAPI static ::nonstd::expected<::BoundingBox, ::std::string_view> placeJigsaw(
112 ::std::string const& pool,
113 ::std::string const& target,
114 schar maxDepth,
115 ::BlockPos const& position,
116 bool keepJigsaws,
117 bool includeEntities,
118 ::Dimension& dimension,
119 ::br::worldgen::LiquidSettings liquidSettings
120 );
121
122 MCAPI static ::nonstd::expected<::BoundingBox, ::std::string_view> placeStructure(
123 ::std::string const& id,
124 ::BlockPos const& pos,
125 ::Dimension& dimension,
126 bool ignoreStartHeight,
127 bool keepJigsaws,
128 bool includeEntities,
129 ::br::worldgen::LiquidSettings liquidSettings
130 );
131
132 MCAPI static void setup(
133 ::CommandRegistry& registry,
134 ::std::unordered_map<::HashedString, ::BiomeDecorationFeature> const& biomeDecorationFeatures,
135 ::Experiments const&
136 );
137 // NOLINTEND
138
139public:
140 // virtual function thunks
141 // NOLINTBEGIN
142 MCAPI void $execute(::CommandOrigin const& origin, ::CommandOutput& output) const;
143 // NOLINTEND
144
145public:
146 // vftables
147 // NOLINTBEGIN
148 MCNAPI static void** $vftable();
149 // NOLINTEND
150};
Definition BlockPos.h:18
Definition BoundingBox.h:13
Definition CommandOrigin.h:32
Definition CommandOutput.h:19
Definition CommandPosition.h:15
Definition CommandRegistry.h:44
Definition Dimension.h:83
Definition Experiments.h:14
Definition Feature.h:18
Definition HashedString.h:5
Definition IFeature.h:13
Definition PlaceCommand.h:24
static MCAPI void ** $vftable()
Definition ServerCommand.h:22
Definition BiomeDecorationFeature.h:15
Definition Alias.h:14